Class: Phrender::RackStatic

Inherits:
RackMiddleware show all
Defined in:
lib/phrender/rack_static.rb

Instance Method Summary collapse

Methods inherited from RackMiddleware

#call

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