Module: Country

Extended by:
Country
Included in:
Country
Defined in:
lib/country.rb

Instance Method Summary collapse

Instance Method Details

#allObject



8
9
10
# File 'lib/country.rb', line 8

def all
  COUNTRIES.keys
end

#namesObject



4
5
6
# File 'lib/country.rb', line 4

def names
 all.map{|country| COUNTRIES[country]["name"]}
end