Class: Sprockets::Components::Pipeline

Inherits:
Object
  • Object
show all
Defined in:
lib/sprockets/components.rb

Instance Method Summary collapse

Instance Method Details

#call(env, type, file_type) ⇒ Object



64
65
66
67
68
69
70
# File 'lib/sprockets/components.rb', line 64

def call env, type, file_type
  {
    "text/css" => [CSSProcessor.new],
    "text/html" => [HTMLProcessor.new],
  }.fetch(type) +
    env.send(:default_processors_for, type, file_type)
end