Class: Sprockets::ProcessorUtils::CompositeProcessor
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Struct
|
|
Instance Chain:
self,
Struct
|
|
Inherits: |
Struct
|
Defined in: | lib/sprockets/processor_utils.rb |
Constant Summary
-
PLURAL =
# File 'lib/sprockets/processor_utils.rb', line 22lambda { |param, input| ProcessorUtils.call_processors param, input }
-
SINGULAR =
# File 'lib/sprockets/processor_utils.rb', line 21lambda { |param, input| ProcessorUtils.call_processor param, input }
Class Method Summary
Instance Attribute Summary
- #param rw
- #processor_strategy rw
- #processors rw
Instance Method Summary
Class Method Details
.create(processors)
[ GitHub ]# File 'lib/sprockets/processor_utils.rb', line 24
def self.create(processors) if processors.length == 1 new SINGULAR, processors.first, processors else new PLURAL, processors, processors end end
Instance Attribute Details
#param (rw)
[ GitHub ]# File 'lib/sprockets/processor_utils.rb', line 20
class CompositeProcessor < Struct.new(:processor_strategy, :param, :processors)
#processor_strategy (rw)
[ GitHub ]# File 'lib/sprockets/processor_utils.rb', line 20
class CompositeProcessor < Struct.new(:processor_strategy, :param, :processors)
#processors (rw)
[ GitHub ]# File 'lib/sprockets/processor_utils.rb', line 20
class CompositeProcessor < Struct.new(:processor_strategy, :param, :processors)
Instance Method Details
#cache_key
[ GitHub ]# File 'lib/sprockets/processor_utils.rb', line 36
def cache_key ProcessorUtils.processors_cache_keys(processors) end
#call(input)
[ GitHub ]# File 'lib/sprockets/processor_utils.rb', line 32
def call(input) processor_strategy.call param, input end