Sha256: 25012f1c17614cf0e16038e6407fb28468fa36f5e1267ce9adb3a8e98442585d

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

module WorldFlags
	module Countries
		class << self		
 			attr_writer :en

			def 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
				{
					: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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
world-flags-0.3.2.2 lib/world_flags/countries.rb