module Sprockets::ProcessorUtils
def compose_processors(*processors)
processors - Array of processors callables
Public: Compose processors in right to left order.
def compose_processors(*processors) context = self if processors.length == 1 obj = method(:call_processor).to_proc.curry[processors.first] else obj = method(:call_processors).to_proc.curry[processors] end metaclass = (class << obj; self; end) metaclass.send(:define_method, :cache_key) do context.processors_cache_keys(processors) end obj end