Class: Melbourne::AST::And
Overview
The and operator as in:
a and b
Direct Known Subclasses
Instance Attribute Summary collapse
-
#left ⇒ Object
The left-side expression of the
andoperator. -
#right ⇒ Object
The right-side expression of the
andoperator.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, left, right) ⇒ And
constructor
A new instance of And.
Methods inherited from Node
Constructor Details
#initialize(line, left, right) ⇒ And
Returns a new instance of And.
19 20 21 22 23 |
# File 'lib/melbourne/ast/operators.rb', line 19 def initialize(line, left, right) @line = line @left = left @right = right end |
Instance Attribute Details
#left ⇒ Object
The left-side expression of the and operator
13 14 15 |
# File 'lib/melbourne/ast/operators.rb', line 13 def left @left end |
#right ⇒ Object
The right-side expression of the and operator
17 18 19 |
# File 'lib/melbourne/ast/operators.rb', line 17 def right @right end |