Module: Rack::Sprockets
- Defined in:
- lib/rack/sprockets.rb,
lib/rack/sprockets/version.rb,
lib/rack/sprockets/response.rb,
lib/rack/sprockets/request.rb,
lib/rack/sprockets/options.rb,
lib/rack/sprockets/source.rb,
lib/rack/sprockets/config.rb,
lib/rack/sprockets/base.rb
Overview
Defined Under Namespace
Modules: Options Classes: Base, Config, Request, Response, Source
Constant Summary collapse
Class Method Summary collapse
- .config ⇒ Object
- .config=(value) ⇒ Object
-
.configure {|@@config| ... } ⇒ Object
Configuration accessors for Rack::Sprockets (see config.rb for details).
-
.new(app, options = {}, &block) ⇒ Object
Create a new Rack::Sprockets middleware component => the
options
Hash can be used to specify default option values => (see Rack::Sprockets::Options for possible key/values).
Class Method Details
.config ⇒ Object
35 36 37 |
# File 'lib/rack/sprockets.rb', line 35 def config @@config end |
.config=(value) ⇒ Object
38 39 40 |
# File 'lib/rack/sprockets.rb', line 38 def config=(value) @@config = value end |
.configure {|@@config| ... } ⇒ Object
Configuration accessors for Rack::Sprockets (see config.rb for details)
32 33 34 |
# File 'lib/rack/sprockets.rb', line 32 def configure yield @@config if block_given? end |
.new(app, options = {}, &block) ⇒ Object
Create a new Rack::Sprockets middleware component
> the options
Hash can be used to specify default option values
> (see Rack::Sprockets::Options for possible key/values)
47 48 49 |
# File 'lib/rack/sprockets.rb', line 47 def self.new(app, ={}, &block) Base.new(app, , &block) end |