class ISOCodes::Country
- ISOCodes::Country
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
iso_codes/countries.crConstructors
Instance Method Summary
- #alpha_2 : String
- #alpha_2=(alpha_2 : String)
- #alpha_3 : String
- #alpha_3=(alpha_3 : String)
- #common_name : String | Nil
- #common_name=(common_name : String | Nil)
- #flag : String
- #flag=(flag : String)
- #name : String
- #name=(name : String)
- #numeric : String
- #numeric=(numeric : String)
- #official_name : String | Nil
- #official_name=(official_name : String | Nil)
-
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
- #translation(language_code : String)
Constructor Detail
Instance Method Detail
def to_s(io : IO) : Nil
#
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>