class Sprockets::LegacyProcProcessor


proc { |context, data| data.gsub(…) })
LegacyProcProcessor.new(:compress,
Will be removed in Sprockets 4.x.
Deprecated: Wraps legacy process Procs with new processor call signature.

def __getobj__

def __getobj__
  @proc
end

def call(input)

def call(input)
  context = input[:environment].context_class.new(input)
  data = @proc.call(context, input[:data])
  context.metadata.merge(data: data)
end

def initialize(name, proc)

def initialize(name, proc)
  @name = name
  @proc = proc
end

def name

def name
  "Sprockets::LegacyProcProcessor (#{@name})"
end

def to_s

def to_s
  name
end