Class: ROM::Memory::Commands::Delete

Inherits:
Commands::Delete show all
Defined in:
lib/rom/memory/commands.rb

Overview

In-memory delete command

Instance Method Summary collapse

Instance Method Details

#executeObject

See Also:

  • Commands::Delete#execute


51
52
53
54
55
56
# File 'lib/rom/memory/commands.rb', line 51

def execute
  relation.to_a.map do |tuple|
    source.delete(tuple)
    tuple
  end
end