Class: RKelly::Nodes::PostfixNode
- Defined in:
- lib/rkelly/nodes/postfix_node.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
Attributes inherited from Node
#comments, #filename, #line, #value
Instance Method Summary collapse
-
#initialize(operand, operator) ⇒ PostfixNode
constructor
A new instance of PostfixNode.
Methods inherited from Node
#==, #===, #each, #pointcut, #to_dots, #to_ecma, #to_real_sexp, #to_sexp
Methods included from Visitable
Constructor Details
#initialize(operand, operator) ⇒ PostfixNode
Returns a new instance of PostfixNode.
5 6 7 8 |
# File 'lib/rkelly/nodes/postfix_node.rb', line 5 def initialize(operand, operator) super(operator) @operand = operand end |
Instance Attribute Details
#operand ⇒ Object (readonly)
Returns the value of attribute operand.
4 5 6 |
# File 'lib/rkelly/nodes/postfix_node.rb', line 4 def operand @operand end |