Class: ROM::CommandProxy Private
- Inherits:
-
Object
- Object
- ROM::CommandProxy
- Defined in:
- lib/rom/command_proxy.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
TODO: look into making command graphs work without the root key in the input so that we can get rid of this wrapper
Instance Attribute Summary collapse
- #command ⇒ Object readonly private
- #root ⇒ Object readonly private
Instance Method Summary collapse
- #>>(other) ⇒ Object private
- #call(input) ⇒ Object private
-
#initialize(command, root) ⇒ CommandProxy
constructor
private
A new instance of CommandProxy.
- #restrictible? ⇒ Boolean private
Constructor Details
#initialize(command, root) ⇒ CommandProxy
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of CommandProxy.
16 17 18 19 |
# File 'lib/rom/command_proxy.rb', line 16 def initialize(command, root) @command = command @root = root end |
Instance Attribute Details
#command ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/rom/command_proxy.rb', line 11 def command @command end |
#root ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/rom/command_proxy.rb', line 13 def root @root end |
Instance Method Details
#>>(other) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
27 28 29 |
# File 'lib/rom/command_proxy.rb', line 27 def >>(other) self.class.new(command >> other, root) end |
#call(input) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 |
# File 'lib/rom/command_proxy.rb', line 22 def call(input) command.call(root => input) end |
#restrictible? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
32 33 34 |
# File 'lib/rom/command_proxy.rb', line 32 def restrictible? command.restrictible? end |