class

Dragonstone::Token

Inherits Reference < Object

Constructors

new(type : Symbol, value : TokenValue, line : Int32, column : Int32, length : Int32, line_text : String | Nil, source_name : String)
Source

Instance methods

column
Source
length
Source
line
Source
line_text
Source
location
Source
source_name
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
type
Source
value
Source