Class: RLSL::Prism::IR::BinaryOp
- Defined in:
- lib/rlsl/prism/ir/expressions.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(operator, left, right, type = nil) ⇒ BinaryOp
constructor
A new instance of BinaryOp.
Methods inherited from Node
Constructor Details
#initialize(operator, left, right, type = nil) ⇒ BinaryOp
Returns a new instance of BinaryOp.
71 72 73 74 75 76 77 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 71 def initialize(operator, left, right, type = nil) super() @operator = operator @left = left @right = right @type = type end |
Instance Attribute Details
#left ⇒ Object (readonly)
Returns the value of attribute left.
67 68 69 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 67 def left @left end |
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
67 68 69 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 67 def operator @operator end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
67 68 69 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 67 def right @right end |