Class: Johnson::Nodes::BinaryNode
- Defined in:
- lib/johnson/nodes/binary_node.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
Returns the value of attribute left.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, column, left, right) ⇒ BinaryNode
constructor
A new instance of BinaryNode.
Methods inherited from Node
#each, #to_dot, #to_ecma, #to_s, #to_sexp
Methods included from Visitable
Constructor Details
#initialize(line, column, left, right) ⇒ BinaryNode
Returns a new instance of BinaryNode.
58 59 60 61 |
# File 'lib/johnson/nodes/binary_node.rb', line 58 def initialize(line, column, left, right) super(line, column, right) @left = left end |
Instance Attribute Details
#left ⇒ Object
Returns the value of attribute left.
57 58 59 |
# File 'lib/johnson/nodes/binary_node.rb', line 57 def left @left end |