Method: ISO3166::CountryClassMethods#all
- Defined in:
- lib/countries/country/class_methods.rb
#all(&blk) ⇒ Object Also known as: countries
27 28 29 30 |
# File 'lib/countries/country/class_methods.rb', line 27 def all(&blk) blk ||= proc { |_alpha2, d| ISO3166::Country.new(d) } ISO3166::Data.cache.map(&blk) end |