Module: Rake::Pipeline::I18n::Filters::PipelineHelpers
- Defined in:
- lib/rake-pipeline-i18n-filters/helpers.rb
Overview
Extends the Rake::Pipeline DSL to include shortcuts for adding filters to the pipeline.
Instance Method Summary collapse
-
#ember_strings(*args, &block) ⇒ Object
Add a new EmberStringsFilter to the pipeline.
-
#i18n_js(*args, &block) ⇒ Object
Add a new I18nJsFilter to the pipeline.
Instance Method Details
#ember_strings(*args, &block) ⇒ Object
Add a new EmberStringsFilter to the pipeline
12 13 14 |
# File 'lib/rake-pipeline-i18n-filters/helpers.rb', line 12 def ember_strings(*args, &block) filter(Rake::Pipeline::I18n::Filters::EmberStringsFilter, *args, &block) end |
#i18n_js(*args, &block) ⇒ Object
Add a new I18nJsFilter to the pipeline
7 8 9 |
# File 'lib/rake-pipeline-i18n-filters/helpers.rb', line 7 def i18n_js(*args, &block) filter(Rake::Pipeline::I18n::Filters::I18nJsFilter, *args, &block) end |