Class: WebResourceBundler::Filters::BaseFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/web_resource_bundler/filters/base_filter.rb

Overview

virtaul base class for filters

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#settingsObject (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

Raises:

  • (NotImplementedError)


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