Class: IV::Phonic::AST::PostfixExpression
- Inherits:
-
Expression
- Object
- Node
- Expression
- IV::Phonic::AST::PostfixExpression
- Defined in:
- lib/iv/phonic/ast.rb
Instance Method Summary collapse
-
#initialize(parent, expr) ⇒ PostfixExpression
constructor
A new instance of PostfixExpression.
Methods inherited from Expression
Methods inherited from Node
#begin_position, #end_position, #program, #source
Constructor Details
#initialize(parent, expr) ⇒ PostfixExpression
Returns a new instance of PostfixExpression.
344 345 346 347 348 |
# File 'lib/iv/phonic/ast.rb', line 344 def initialize parent, expr super parent, expr @op = expr[:op] @expr = Expression.as self, expr[:expr] end |