Class: ROM::Memory::Commands::Delete
- Inherits:
-
Commands::Delete
- Object
- Command
- Commands::Delete
- ROM::Memory::Commands::Delete
- Defined in:
- lib/rom/memory/commands.rb
Overview
In-memory delete command
Constant Summary
Constants inherited from Command
Command::CommandType, Command::Result
Instance Attribute Summary
Attributes inherited from Command
#after, #before, #config, #curry_args, #input, #relation, #result, #source, #type
Instance Method Summary collapse
Methods inherited from Command
#after_hooks, #before_hooks, #call, #combine, #curried?, #curry, extend_for_relation, #gateway, #graph?, #hooks?, #lazy?, #many?, #map_input_tuples, #name, #new, #one?, relation_methods_mod, #restrictible?, setting_mapping
Methods included from Plugins::ClassMethods
Methods included from Initializer
Methods included from Command::ClassInterface
#[], #adapter, #adapter_namespace, #after, #before, #build, #create_class, #default_name, extended, #inherited, #set_hooks
Methods included from Command::Restrictable
Methods included from Notifications::Listener
Methods included from Pipeline::Operator
Instance Method Details
#execute ⇒ Object
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 |