Class: RKelly::Nodes::ForInNode
- Defined in:
- lib/rkelly/nodes/for_in_node.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
Attributes inherited from Node
#comments, #filename, #line, #value
Instance Method Summary collapse
-
#initialize(left, right, block) ⇒ ForInNode
constructor
A new instance of ForInNode.
Methods inherited from Node
#==, #===, #each, #pointcut, #to_dots, #to_ecma, #to_real_sexp, #to_sexp
Methods included from Visitable
Constructor Details
#initialize(left, right, block) ⇒ ForInNode
Returns a new instance of ForInNode.
5 6 7 8 9 |
# File 'lib/rkelly/nodes/for_in_node.rb', line 5 def initialize(left, right, block) super(block) @left = left @right = right end |
Instance Attribute Details
#left ⇒ Object (readonly)
Returns the value of attribute left.
4 5 6 |
# File 'lib/rkelly/nodes/for_in_node.rb', line 4 def left @left end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
4 5 6 |
# File 'lib/rkelly/nodes/for_in_node.rb', line 4 def right @right end |