Class: FAM::Syntax::AST::NumericNode

Inherits:
Node show all
Defined in:
lib/fam/syntax/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#to_s

Constructor Details

#initialize(numeric) ⇒ NumericNode

Returns a new instance of NumericNode.



130
131
132
# File 'lib/fam/syntax/ast.rb', line 130

def initialize numeric
  @numeric = Integer numeric.name
end

Instance Attribute Details

#numericObject

Returns the value of attribute numeric.



129
130
131
# File 'lib/fam/syntax/ast.rb', line 129

def numeric
  @numeric
end