Class: Ikra::Symbolic::ArraySelectCommand
- Includes:
- ArrayCommand
- Defined in:
- lib/symbolic/visitor.rb,
lib/symbolic/symbolic.rb
Instance Attribute Summary collapse
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Attributes included from ArrayCommand
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(target, block) ⇒ ArraySelectCommand
constructor
A new instance of ArraySelectCommand.
Methods included from ArrayCommand
#[], #ast, #block_parameter_names, #execute, #externals, #lexical_externals, #pmap, #size, #to_command
Constructor Details
#initialize(target, block) ⇒ ArraySelectCommand
Returns a new instance of ArraySelectCommand.
169 170 171 172 173 174 |
# File 'lib/symbolic/symbolic.rb', line 169 def initialize(target, block) super @target = target @block = block end |
Instance Attribute Details
#target ⇒ Object (readonly)
Returns the value of attribute target.
167 168 169 |
# File 'lib/symbolic/symbolic.rb', line 167 def target @target end |
Instance Method Details
#accept(visitor) ⇒ Object
16 17 18 |
# File 'lib/symbolic/visitor.rb', line 16 def accept(visitor) visitor.visit_array_select_command(self) end |