Module: Rake::Pipeline::Web::Filters::FilterWithDependencies
- Included in:
- CoffeeScriptFilter, GzipFilter, HandlebarsFilter, LessFilter, SassFilter, StylusFilter, TiltFilter, UglifyFilter, YUICssFilter, YUIJavaScriptFilter
- Defined in:
- lib/rake-pipeline-web-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-web-filters/filter_with_dependencies.rb', line 10 def initialize(*args, &block) require_dependencies! super(*args, &block) end |