Class: Crokus::Literal
Overview
literals
Instance Attribute Summary collapse
-
#tok ⇒ Object
Returns the value of attribute tok.
Instance Method Summary collapse
-
#initialize(tok) ⇒ Literal
constructor
A new instance of Literal.
- #to_s ⇒ Object
Methods inherited from Ast
Constructor Details
#initialize(tok) ⇒ Literal
Returns a new instance of Literal.
419 420 421 |
# File 'lib/crokus/ast.rb', line 419 def initialize tok @tok=tok end |
Instance Attribute Details
#tok ⇒ Object
Returns the value of attribute tok.
418 419 420 |
# File 'lib/crokus/ast.rb', line 418 def tok @tok end |
Instance Method Details
#to_s ⇒ Object
423 424 425 |
# File 'lib/crokus/ast.rb', line 423 def to_s @tok.val end |