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