Class: RParsec::Token
- Inherits:
-
Object
- Object
- RParsec::Token
- Defined in:
- lib/rparsec/token.rb
Instance Method Summary collapse
-
#length ⇒ Object
The length of the token.
-
#to_s ⇒ Object
String representation of the token.
Instance Method Details
#length ⇒ Object
The length of the token.
18 |
# File 'lib/rparsec/token.rb', line 18 def length = @text.length |
#to_s ⇒ Object
String representation of the token.
23 |
# File 'lib/rparsec/token.rb', line 23 def to_s = "#{@kind}: #{@text}" |