Skip to content

class JSON::Token
inherits Reference

Class methods

Methods

#column_number : Int32

View source

#column_number=(column_number : Int32)

View source

#float_value : Float64

View source

#float_value=(float_value : Float64)

View source

#int_value : Int64

View source

#int_value=(int_value : Int64)

View source

#kind : Kind

View source

#kind=(kind : Kind)

View source

#line_number : Int32

View source

#line_number=(line_number : Int32)

View source

#raw_value : String

View source

#raw_value=(raw_value : String)

View source

#string_value : String

View source

#string_value=(string_value : String)

View source

#to_s(io : IO) : Nil

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>
View source