Exception: SiteFuel::Processor::MultipleApplicableProcessors
- Inherits:
-
StandardError
- Object
- StandardError
- SiteFuel::Processor::MultipleApplicableProcessors
- Defined in:
- lib/sitefuel/processors/AbstractProcessor.rb
Overview
raised when multiple processors trigger off of a single file
Instance Attribute Summary collapse
-
#chosen_processor ⇒ Object
readonly
Returns the value of attribute chosen_processor.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#processors ⇒ Object
readonly
Returns the value of attribute processors.
Instance Method Summary collapse
-
#initialize(filename, processors, chosen_processor) ⇒ MultipleApplicableProcessors
constructor
A new instance of MultipleApplicableProcessors.
- #to_s ⇒ Object
Constructor Details
#initialize(filename, processors, chosen_processor) ⇒ MultipleApplicableProcessors
Returns a new instance of MultipleApplicableProcessors.
59 60 61 62 63 |
# File 'lib/sitefuel/processors/AbstractProcessor.rb', line 59 def initialize(filename, processors, chosen_processor) @filename = filename @resource_processors = processors @chosen_processor = chosen_processor end |
Instance Attribute Details
#chosen_processor ⇒ Object (readonly)
Returns the value of attribute chosen_processor.
57 58 59 |
# File 'lib/sitefuel/processors/AbstractProcessor.rb', line 57 def chosen_processor @chosen_processor end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
57 58 59 |
# File 'lib/sitefuel/processors/AbstractProcessor.rb', line 57 def filename @filename end |
#processors ⇒ Object (readonly)
Returns the value of attribute processors.
57 58 59 |
# File 'lib/sitefuel/processors/AbstractProcessor.rb', line 57 def processors @processors end |
Instance Method Details
#to_s ⇒ Object
65 66 67 68 |
# File 'lib/sitefuel/processors/AbstractProcessor.rb', line 65 def to_s "File '%s' triggered processors: %s. Using %s" % [@filename, @resource_processors.join(', '), @chosen_processor.class] end |