Class: RubyRTL::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.
Attributes inherited from Expr
Attributes inherited from Ast
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.
189 190 191 |
# File 'lib/ruby_rtl/ast.rb', line 189 def initialize lhs,op,rhs @lhs,@op,@rhs=lhs,op,rhs end |
Instance Attribute Details
#lhs ⇒ Object
Returns the value of attribute lhs.
188 189 190 |
# File 'lib/ruby_rtl/ast.rb', line 188 def lhs @lhs end |
#op ⇒ Object
Returns the value of attribute op.
188 189 190 |
# File 'lib/ruby_rtl/ast.rb', line 188 def op @op end |
#rhs ⇒ Object
Returns the value of attribute rhs.
188 189 190 |
# File 'lib/ruby_rtl/ast.rb', line 188 def rhs @rhs end |