Syntax::Token
Constructors
new
SourceInstance methods
column_number
Sourcecopy_from(other)
Sourcedelimiter_state
Sourcedelimiter_state=(delimiter_state : DelimiterState)
Sourcedoc
Sourcedoc_buffer
Sourcefilename
Sourceinvalid_escape
Sourcekeyword?(keyword)
Sourcekeyword?
Sourceline_number
Sourcelocation
Sourcemacro_state
Sourcemacro_state=(macro_state : MacroState)
Sourcenumber_kind
Sourcenumber_kind=(number_kind : NumberKind)
Sourcepassed_backslash_newline
Sourceraw
Sourcestart
SourceAppends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>
token?(token)
Sourcetype
Sourcevalue
Source