Lit::Token
Inherits Reference / Object
Constructors
new(type : ::Lit::TokenType, lexeme : String, literal : Float64 | Int64 | String | Nil, line : Int32, filename : String)
SourceInstance methods
filename
Sourceinspect
Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
This method should usually not be overridden. It delegates to
#inspect(IO) which can be overridden for custom implementations.
Also see #to_s.
lexeme
Sourceline
Sourceliteral
Sourceto_s(*args, **options)
Sourceto_s(*args, **options, &)
Sourcetype
Sourcewith_lexeme(lexeme)
Sourcewith_type(type)
Source