Class: MSFLVisitors::Nodes::Binary
- Defined in:
- lib/msfl_visitors/nodes/binary.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#left ⇒ Object
Returns the value of attribute left.
-
#right ⇒ Object
Returns the value of attribute right.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(left, right) ⇒ Binary
constructor
A new instance of Binary.
Methods inherited from Base
Constructor Details
#initialize(left, right) ⇒ Binary
Returns a new instance of Binary.
7 8 9 10 |
# File 'lib/msfl_visitors/nodes/binary.rb', line 7 def initialize(left, right) self.left = left self.right = right end |
Instance Attribute Details
#left ⇒ Object
Returns the value of attribute left.
5 6 7 |
# File 'lib/msfl_visitors/nodes/binary.rb', line 5 def left @left end |
#right ⇒ Object
Returns the value of attribute right.
5 6 7 |
# File 'lib/msfl_visitors/nodes/binary.rb', line 5 def right @right end |
Instance Method Details
#==(other) ⇒ Object
12 13 14 15 16 |
# File 'lib/msfl_visitors/nodes/binary.rb', line 12 def ==(other) self.class == other.class && self.left == other.left && self.right == other.right end |