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.
358 359 360 |
# File 'lib/crokus/ast.rb', line 358 def initialize lhs,op,rhs @lhs,@op,@rhs = lhs,op,rhs end |
Instance Attribute Details
#lhs ⇒ Object
Returns the value of attribute lhs.
357 358 359 |
# File 'lib/crokus/ast.rb', line 357 def lhs @lhs end |
#op ⇒ Object
Returns the value of attribute op.
357 358 359 |
# File 'lib/crokus/ast.rb', line 357 def op @op end |
#rhs ⇒ Object
Returns the value of attribute rhs.
357 358 359 |
# File 'lib/crokus/ast.rb', line 357 def rhs @rhs end |