Class: RKelly::Nodes::CommaNode

Inherits:
Node
  • Object
show all
Defined in:
lib/rkelly/nodes/comma_node.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#comments, #filename, #line, #value

Instance Method Summary collapse

Methods inherited from Node

#==, #===, #each, #pointcut, #to_dots, #to_ecma, #to_real_sexp, #to_sexp

Methods included from Visitable

#accept

Constructor Details

#initialize(left, right) ⇒ CommaNode

Returns a new instance of CommaNode.



5
6
7
8
# File 'lib/rkelly/nodes/comma_node.rb', line 5

def initialize(left, right)
  super(right)
  @left = left
end

Instance Attribute Details

#leftObject (readonly)

Returns the value of attribute left.



4
5
6
# File 'lib/rkelly/nodes/comma_node.rb', line 4

def left
  @left
end