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.
423 424 425 |
# File 'lib/crokus/ast.rb', line 423 def initialize tok @tok=tok end |
Instance Attribute Details
#tok ⇒ Object
Returns the value of attribute tok.
422 423 424 |
# File 'lib/crokus/ast.rb', line 422 def tok @tok end |
Instance Method Details
#to_s ⇒ Object
427 428 429 |
# File 'lib/crokus/ast.rb', line 427 def to_s @tok.val end |