Method: ThatLanguage::Store#to_h
- Defined in:
- lib/that_language/store.rb
#to_h ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/that_language/store.rb', line 11 def to_h Hash.new.tap do |hash| within_pstore do # FIXME: Change `pstore[:locales]` to pstore[:language_codes] hash[:language_codes] = pstore[:locales] hash[:language_codes].each do |language_code| hash[language_code] = pstore[language_code] end end end end |