Class: IV::Phonic::AST::NumberLiteral
- Inherits:
-
Literal
- Object
- Node
- Expression
- Literal
- IV::Phonic::AST::NumberLiteral
- Defined in:
- lib/iv/phonic/ast.rb
Instance Method Summary collapse
-
#initialize(parent, expr) ⇒ NumberLiteral
constructor
A new instance of NumberLiteral.
Methods inherited from Expression
Methods inherited from Node
#begin_position, #end_position, #program, #source
Constructor Details
#initialize(parent, expr) ⇒ NumberLiteral
Returns a new instance of NumberLiteral.
362 363 364 365 |
# File 'lib/iv/phonic/ast.rb', line 362 def initialize parent, expr super parent, expr @value = expr[:value] end |