Class: I18n::Coverage::KeyLister
- Inherits:
-
Object
- Object
- I18n::Coverage::KeyLister
- Defined in:
- lib/i18n/coverage/key_lister.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ KeyLister
constructor
A new instance of KeyLister.
- #list_keys ⇒ Object
Constructor Details
Class Method Details
Instance Method Details
#list_keys ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/i18n/coverage/key_lister.rb', line 16 def list_keys @locale_files .map(&YAML.method(:load_file)) .flat_map { |hash| visit_childs(source: hash, path: []) } @keys end |