Class: Ikra::Symbolic::ArraySelectCommand

Inherits:
Object
  • Object
show all
Includes:
ArrayCommand
Defined in:
lib/symbolic/visitor.rb,
lib/symbolic/symbolic.rb

Instance Attribute Summary collapse

Attributes included from ArrayCommand

#unique_id

Instance Method Summary collapse

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

#targetObject (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