Module: I18nYamlEditor::Filter
- Included in:
- Store
- Defined in:
- lib/i18n_yaml_editor/filter.rb
Overview
Transformation provides
Instance Method Summary collapse
-
#filter_keys(options = {}) ⇒ Object
Selects keys from this store according to the given filter options.
Instance Method Details
#filter_keys(options = {}) ⇒ Object
Selects keys from this store according to the given filter options
7 8 9 10 |
# File 'lib/i18n_yaml_editor/filter.rb', line 7 def filter_keys( = {}) filters = filters() keys.select { |_, key| filters.all? { |filter| filter.call(key) } } end |