lib/world_flags/countries.rb in world-flags-0.2.3 vs lib/world_flags/countries.rb in world-flags-0.2.4
- old
+ new
@@ -1,21 +1,25 @@
module WorldFlags
module Countries
- def self.en
- {
- :ar => 'Argentina',
- :br => 'Brazil',
- :gb => 'Great Britain',
- :us => 'United States',
- :es => 'Spain',
- :gr => 'Greece',
- :it => 'Italy',
- :nl => 'Netherlands',
- :de => 'Germany',
- :dk => 'Denmark',
- :se => 'Sweden',
- :no => 'Norway',
- :fi => 'Finland'
- }
+ 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',
+ :se => 'Sweden',
+ :no => 'Norway',
+ :fi => 'Finland'
+ }
+ end
end
end
end
\ No newline at end of file