Class: Phrender::RackStatic
- Inherits:
-
RackMiddleware
- Object
- RackMiddleware
- Phrender::RackStatic
- Defined in:
- lib/phrender/rack_static.rb
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ RackStatic
constructor
A new instance of RackStatic.
Methods inherited from RackMiddleware
Constructor Details
#initialize(opts = {}) ⇒ RackStatic
Returns a new instance of RackStatic.
7 8 9 10 11 |
# File 'lib/phrender/rack_static.rb', line 7 def initialize(opts = {}) asset_root = opts.delete :asset_root app = Rack::File.new(asset_root) super(app, opts) end |