Class: TwitterCldr::Shared::Resources

Inherits:
Object
  • Object
show all
Defined in:
lib/twitter_cldr/shared/resources.rb

Instance Method Summary collapse

Instance Method Details

#get_locale_resource(locale, resource_name) ⇒ Object


14
15
16
# File 'lib/twitter_cldr/shared/resources.rb', line 14

def get_locale_resource(locale, resource_name)
  get_resource(:locales, TwitterCldr.convert_locale(locale), resource_name)
end

#get_resource(*path) ⇒ Object


10
11
12
# File 'lib/twitter_cldr/shared/resources.rb', line 10

def get_resource(*path)
  resources_cache[resource_file_path(path)]
end