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

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

Overview

In-memory delete command

Instance Method Summary collapse

Instance Method Details

#executeObject

See Also:

  • Commands::Delete#execute


49
50
51
52
53
54
# File 'core/lib/rom/memory/commands.rb', line 49

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