class NASON::Token
Defined in:
nason/token.crConstructors
Instance Method Summary
- #column_number : Int32
- #column_number=(column_number : Int32)
- #float_value : Float64
- #int_value : Int64
- #kind : Kind
- #kind=(kind : Kind)
- #line_number : Int32
- #line_number=(line_number : Int32)
- #raw_value : String
- #raw_value=(raw_value : String)
- #string_value : String
- #string_value=(string_value : String)
-
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
Instance methods inherited from class Reference
==(other : NASON::Any)
==
Instance methods inherited from class Object
===(other : NASON::Any)
===,
nil_or_null?
nil_or_null?,
not_null!
not_null!,
null?
null?,
to_nason(io : IO) : Nilto_nason : String to_nason, to_pretty_json(indent : String = " ") : String
to_pretty_json(io : IO, indent : String = " ") : Nil to_pretty_json
Class methods inherited from class Object
from_nason(string_or_io, root : String)from_nason(string_or_io) from_nason
Constructor Detail
Instance Method Detail
Description copied from class Reference
Appends 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>