Class: Sprockets::ProcessorUtils::CompositeProcessor
- Inherits:
-
Struct
- Object
- Struct
- Sprockets::ProcessorUtils::CompositeProcessor
- Defined in:
- lib/sprockets/processor_utils.rb
Overview
:nodoc:
Constant Summary collapse
- SINGULAR =
lambda { |param, input| ProcessorUtils.call_processor param, input }
- PLURAL =
lambda { |param, input| ProcessorUtils.call_processors param, input }
Instance Attribute Summary collapse
-
#param ⇒ Object
Returns the value of attribute param.
-
#processor_strategy ⇒ Object
Returns the value of attribute processor_strategy.
-
#processors ⇒ Object
Returns the value of attribute processors.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#param ⇒ Object
Returns the value of attribute param
20 21 22 |
# File 'lib/sprockets/processor_utils.rb', line 20 def param @param end |
#processor_strategy ⇒ Object
Returns the value of attribute processor_strategy
20 21 22 |
# File 'lib/sprockets/processor_utils.rb', line 20 def processor_strategy @processor_strategy end |
#processors ⇒ Object
Returns the value of attribute processors
20 21 22 |
# File 'lib/sprockets/processor_utils.rb', line 20 def processors @processors end |
Class Method Details
Instance Method Details
#cache_key ⇒ Object
36 37 38 |
# File 'lib/sprockets/processor_utils.rb', line 36 def cache_key ProcessorUtils.processors_cache_keys(processors) end |
#call(input) ⇒ Object
32 33 34 |
# File 'lib/sprockets/processor_utils.rb', line 32 def call(input) processor_strategy.call param, input end |