Sha256: 276cd8da2191e3c5ff2364b466a602b2270b7822dea7d1a542c98b5b2c265cfa
Contents?: true
Size: 1009 Bytes
Versions: 1
Compression:
Stored size: 1009 Bytes
Contents
module WorldFlags class Countries < Hashie::Mash def en @en ||= { :ar => 'Argentina', :br => 'Brazil', :gb => 'Great Britain', :us => 'United States', :es => 'Spain', :gr => 'Greece', :it => 'Italy', :nl => 'Netherlands', :de => 'Germany', :dk => 'Denmark', :sv => 'Sweden', :no => 'Norway', :fi => 'Finland' } end def da @da ||= { :gb => 'England', :us => 'USA', :es => 'Spanien', :de => 'Tyskland', :dk => 'Danmark', :sv => 'Sverige', :no => 'Norge', } end alias_method :dk, :da def se { :gb => 'England', :us => 'USA', :es => 'Spanien', :de => 'Tyskland', :dk => 'Danmark', :sv => 'Sverige', :no => 'Norge', } end alias_method :sv, :se def no { :gb => 'England', :us => 'USA', :es => 'Spanien', :de => 'Tyskland', :dk => 'Danmark', :se => 'Sverige', :no => 'Norge' } end alias_method :nb, :no end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
world-flags-0.3.4 | lib/world_flags/countries.rb |