class Sprockets::Processor


end
# …
register_preprocessor :my_processor do |context, data|
‘Processor` creates an anonymous processor class from a block.

def self.name

def self.name
  "Sprockets::Processor (#{@name})"
end

def self.processor

`processor` is a lambda or block
def self.processor
  @processor
end

def self.to_s

def self.to_s
  name
end

def evaluate(context, locals)

Call processor block with `context` and `data`.
def evaluate(context, locals)
  self.class.processor.call(context, data)
end

def prepare

def prepare
end