Class: Sinatra::Sprockets::Task
- Inherits:
-
Rake::SprocketsTask
- Object
- Rake::SprocketsTask
- Sinatra::Sprockets::Task
- Defined in:
- lib/sinatra/sprockets/task.rb
Class Method Summary collapse
- .define(app) ⇒ Object (also: define!)
Instance Method Summary collapse
- #define ⇒ Object
-
#initialize(app) {|_self| ... } ⇒ Task
constructor
Just create a wrapper for the Sprockets Task.
Constructor Details
#initialize(app) {|_self| ... } ⇒ Task
Just create a wrapper for the Sprockets Task
9 10 11 12 13 14 15 16 |
# File 'lib/sinatra/sprockets/task.rb', line 9 def initialize(app) super(:precompile) @output = File.join(app.public_folder, app.assets_prefix) @assets = app.assets_precompile @environment = app.sprockets yield self if block_given? end |
Class Method Details
Instance Method Details
#define ⇒ Object
18 19 20 21 22 |
# File 'lib/sinatra/sprockets/task.rb', line 18 def define namespace :assets do super end end |