Class: Termular::AST::Number

Inherits:
Base
  • Object
show all
Defined in:
lib/termular/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Termular::AST::Base

Instance Attribute Details

#numberObject

Returns the value of attribute number.



40
41
42
# File 'lib/termular/parser.rb', line 40

def number
  @number
end

Instance Method Details

#eval(ctx) ⇒ Object



41
42
43
# File 'lib/termular/parser.rb', line 41

def eval(ctx)
  number
end