123456789_123456789_123456789_123456789_123456789_

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
  • Object
Defined in: lib/sprockets/processor_utils.rb

Constant Summary

Class Method Summary

Instance Attribute Summary

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