Class: Faust2Ruby::AST::BinaryOp
Overview
Binary operation: left OP right
Instance Attribute Summary collapse
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#op ⇒ Object
readonly
Returns the value of attribute op.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(op, left, right, **opts) ⇒ BinaryOp
constructor
A new instance of BinaryOp.
Constructor Details
#initialize(op, left, right, **opts) ⇒ BinaryOp
Returns a new instance of BinaryOp.
64 65 66 67 68 69 |
# File 'lib/faust2ruby/ast.rb', line 64 def initialize(op, left, right, **opts) super(**opts) @op = op @left = left @right = right end |
Instance Attribute Details
#left ⇒ Object (readonly)
Returns the value of attribute left.
62 63 64 |
# File 'lib/faust2ruby/ast.rb', line 62 def left @left end |
#op ⇒ Object (readonly)
Returns the value of attribute op.
62 63 64 |
# File 'lib/faust2ruby/ast.rb', line 62 def op @op end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
62 63 64 |
# File 'lib/faust2ruby/ast.rb', line 62 def right @right end |