Class: Metrostations::Store
- Inherits:
-
Object
- Object
- Metrostations::Store
- Defined in:
- lib/metrostations/store.rb
Instance Method Summary collapse
- #available_locales ⇒ Object
- #fetch(locale) ⇒ Object
-
#initialize ⇒ Store
constructor
A new instance of Store.
Constructor Details
#initialize ⇒ Store
Returns a new instance of Store.
5 6 7 |
# File 'lib/metrostations/store.rb', line 5 def initialize @source = File.('../../metrostations.yml', __FILE__) end |
Instance Method Details
#available_locales ⇒ Object
13 14 15 |
# File 'lib/metrostations/store.rb', line 13 def available_locales config.keys end |
#fetch(locale) ⇒ Object
9 10 11 |
# File 'lib/metrostations/store.rb', line 9 def fetch(locale) config.fetch(locale) end |