Module: Rake::Pipeline::I18n::Filters::FilterWithDependencies

Included in:
EmberStringsFilter, I18nJsFilter
Defined in:
lib/rake-pipeline-i18n-filters/filter_with_dependencies.rb

Overview

A mixin for filters that have dependencies on external libraries. Include this module in the filter class and declare a private ‘external_dependencies` method that returns an array of strings. Each one will be passed to `Kernel#require` when an instance of the filter is created.

Instance Method Summary collapse

Instance Method Details

#initialize(*args, &block) ⇒ Object



10
11
12
13
# File 'lib/rake-pipeline-i18n-filters/filter_with_dependencies.rb', line 10

def initialize(*args, &block)
  require_dependencies!
  super(*args, &block)
end