Class: Tagomatic::TagsProcessingChain
- Inherits:
-
Object
- Object
- Tagomatic::TagsProcessingChain
- Defined in:
- lib/tagomatic/tags_processing_chain.rb
Instance Method Summary collapse
-
#initialize(options, tags_processor_factory, logger) ⇒ TagsProcessingChain
constructor
A new instance of TagsProcessingChain.
- #process!(tags_hash) ⇒ Object
Constructor Details
#initialize(options, tags_processor_factory, logger) ⇒ TagsProcessingChain
Returns a new instance of TagsProcessingChain.
5 6 7 8 9 |
# File 'lib/tagomatic/tags_processing_chain.rb', line 5 def initialize(, , logger) @options = @tags_processor_factory = @logger = logger end |
Instance Method Details
#process!(tags_hash) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/tagomatic/tags_processing_chain.rb', line 11 def process!() return if .nil? or .empty? chain = create_processor_chain chain.each do |processor| .merge! processor.process() end end |