Module: CountriesRu
- Defined in:
- lib/countries_ru.rb,
lib/countries_ru/country.rb,
lib/countries_ru/version.rb
Defined Under Namespace
Classes: Country
Constant Summary collapse
- Data =
YAML.load_file(File.join(File.dirname(__FILE__), 'data', 'countries.yml')) || {}
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.method_missing(method_name, *args, &block) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/countries_ru.rb', line 8 def method_missing(method_name, *args, &block) proxy_methods = [:[], :keys, :each, :map] if proxy_methods.include? method_name Data.send(method_name, *args, &block) end end |