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.
361 362 363 364 |
# File 'lib/crokus/ast.rb', line 361 def initialize op,rhs,postfix=nil @op,@rhs=op,rhs @postfix=postfix end |
Instance Attribute Details
#op ⇒ Object
Returns the value of attribute op.
360 361 362 |
# File 'lib/crokus/ast.rb', line 360 def op @op end |
#postfix ⇒ Object
Returns the value of attribute postfix.
360 361 362 |
# File 'lib/crokus/ast.rb', line 360 def postfix @postfix end |
#rhs ⇒ Object
Returns the value of attribute rhs.
360 361 362 |
# File 'lib/crokus/ast.rb', line 360 def rhs @rhs end |