Class: Crokus::Unary
Instance Attribute Summary collapse
-
#op ⇒ Object
Returns the value of attribute op.
-
#postfix ⇒ Object
Returns the value of attribute postfix.
-
#rhs ⇒ Object
Returns the value of attribute rhs.
Instance Method Summary collapse
-
#initialize(op, rhs, postfix = nil) ⇒ Unary
constructor
A new instance of Unary.
Methods inherited from Ast
Constructor Details
#initialize(op, rhs, postfix = nil) ⇒ Unary
Returns a new instance of Unary.
365 366 367 368 |
# File 'lib/crokus/ast.rb', line 365 def initialize op,rhs,postfix=nil @op,@rhs=op,rhs @postfix=postfix end |
Instance Attribute Details
#op ⇒ Object
Returns the value of attribute op.
364 365 366 |
# File 'lib/crokus/ast.rb', line 364 def op @op end |
#postfix ⇒ Object
Returns the value of attribute postfix.
364 365 366 |
# File 'lib/crokus/ast.rb', line 364 def postfix @postfix end |
#rhs ⇒ Object
Returns the value of attribute rhs.
364 365 366 |
# File 'lib/crokus/ast.rb', line 364 def rhs @rhs end |