Class: Crokus::Binary
Instance Attribute Summary collapse
-
#lhs ⇒ Object
Returns the value of attribute lhs.
-
#op ⇒ Object
Returns the value of attribute op.
-
#rhs ⇒ Object
Returns the value of attribute rhs.
Instance Method Summary collapse
-
#initialize(lhs, op, rhs) ⇒ Binary
constructor
A new instance of Binary.
Methods inherited from Ast
Constructor Details
#initialize(lhs, op, rhs) ⇒ Binary
Returns a new instance of Binary.
354 355 356 |
# File 'lib/crokus/ast.rb', line 354 def initialize lhs,op,rhs @lhs,@op,@rhs = lhs,op,rhs end |
Instance Attribute Details
#lhs ⇒ Object
Returns the value of attribute lhs.
353 354 355 |
# File 'lib/crokus/ast.rb', line 353 def lhs @lhs end |
#op ⇒ Object
Returns the value of attribute op.
353 354 355 |
# File 'lib/crokus/ast.rb', line 353 def op @op end |
#rhs ⇒ Object
Returns the value of attribute rhs.
353 354 355 |
# File 'lib/crokus/ast.rb', line 353 def rhs @rhs end |