Class: Crokus::Ident
Instance Attribute Summary collapse
-
#tok ⇒ Object
Returns the value of attribute tok.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(tok) ⇒ Ident
constructor
A new instance of Ident.
- #to_s ⇒ Object
Methods inherited from Ast
Constructor Details
#initialize(tok) ⇒ Ident
Returns a new instance of Ident.
31 32 33 |
# File 'lib/crokus/ast.rb', line 31 def initialize tok @tok=tok end |
Instance Attribute Details
#tok ⇒ Object
Returns the value of attribute tok.
30 31 32 |
# File 'lib/crokus/ast.rb', line 30 def tok @tok end |
Class Method Details
Instance Method Details
#to_s ⇒ Object
35 36 37 |
# File 'lib/crokus/ast.rb', line 35 def to_s @tok.val end |