class Sprockets::DirectiveProcessor

def process_directives


env.register_processor('text/css', DirectiveProcessor)
env.unregister_processor('text/css', Sprockets::DirectiveProcessor)

Replace the current processor on the environment with your own:

end
end
end
require(filename)
Dir["#{pathname.dirname}/#{glob}"].sort.each do |filename|
def process_require_glob_directive
class DirectiveProcessor < Sprockets::DirectiveProcessor

`process_require_glob_directive`.
`Sprockets::DirectiveProcessor`, then add a method called
To implement a custom directive called `require_glob`, subclass

processor.
automatically be available. This makes it easy to extend the
Any directive method matching `process_*_directive` will
Gathers comment directives in the source and processes them.
def process_directives
  directives.each do |line_number, name, *args|
    context.__LINE__ = line_number
    send("process_#{name}_directive", *args)
    context.__LINE__ = nil
  end
end