Class: WebResourceBundler::Filters::BaseFilter
- Inherits:
-
Object
- Object
- WebResourceBundler::Filters::BaseFilter
- Defined in:
- lib/web_resource_bundler/filters/base_filter.rb
Overview
virtaul base class for filters
Direct Known Subclasses
WebResourceBundler::Filters::BundleFilter::Filter, CdnFilter::Filter, CompressFilter::Filter, ImageEncodeFilter::Filter
Instance Attribute Summary collapse
-
#settings ⇒ Object
readonly
Returns the value of attribute settings.
Instance Method Summary collapse
- #apply!(block_data = nil) ⇒ Object
-
#initialize(settings, file_manager) ⇒ BaseFilter
constructor
A new instance of BaseFilter.
- #set_settings(settings) ⇒ Object
Constructor Details
#initialize(settings, file_manager) ⇒ BaseFilter
Returns a new instance of BaseFilter.
7 8 9 10 |
# File 'lib/web_resource_bundler/filters/base_filter.rb', line 7 def initialize(settings, file_manager) @settings = settings @file_manager = file_manager end |
Instance Attribute Details
#settings ⇒ Object (readonly)
Returns the value of attribute settings.
5 6 7 |
# File 'lib/web_resource_bundler/filters/base_filter.rb', line 5 def settings @settings end |
Instance Method Details
#apply!(block_data = nil) ⇒ Object
16 17 18 |
# File 'lib/web_resource_bundler/filters/base_filter.rb', line 16 def apply!(block_data = nil) raise NotImplementedError.new end |
#set_settings(settings) ⇒ Object
12 13 14 |
# File 'lib/web_resource_bundler/filters/base_filter.rb', line 12 def set_settings(settings) @settings = settings end |