Exception: SiteFuel::Processor::UnknownFilter

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sitefuel/processors/AbstractProcessor.rb

Overview

raised when attempting to run a filter that doesn’t exist

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(processor, name) ⇒ UnknownFilter

Returns a new instance of UnknownFilter.



26
27
28
29
# File 'lib/sitefuel/processors/AbstractProcessor.rb', line 26

def initialize(processor, name)
  @processor = processor
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



24
25
26
# File 'lib/sitefuel/processors/AbstractProcessor.rb', line 24

def name
  @name
end

#processorObject (readonly)

Returns the value of attribute processor.



24
25
26
# File 'lib/sitefuel/processors/AbstractProcessor.rb', line 24

def processor
  @processor
end

Instance Method Details

#to_sObject



31
32
33
34
# File 'lib/sitefuel/processors/AbstractProcessor.rb', line 31

def to_s
  "'%s' called for processor '%s'" %
  [@name, @processor.class]
end