Parent

Locale::Info::Region

This class models out a region/country from the ISO 3166 standard for region codes. In ISO3166, it’s called “Country” but Ruby/Locale the word “Region” instead.

Attributes

code[R]
name[R]

Public Class Methods

new(code, name) click to toggle source
code

The 2 or 3 digit ISO 3166 region code.

name

The name of the region.

    # File lib/locale/info/region.rb, line 25
25:       def initialize(code, name)
26:         @code = code
27:         @name = name
28:       end

Public Instance Methods

iso_region?() click to toggle source
    # File lib/locale/info/region.rb, line 30
30:       def iso_region?
31:         @@regions[code] != nil
32:       end
to_s() click to toggle source
    # File lib/locale/info/region.rb, line 34
34:       def to_s
35:         "#{code}"
36:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.