Class: Rack::Static
- Inherits:
-
Object
- Object
- Rack::Static
- Defined in:
- lib/lane_groove.rb
Instance Method Summary collapse
-
#initialize(app, options = {}) ⇒ Static
constructor
A new instance of Static.
Constructor Details
#initialize(app, options = {}) ⇒ Static
Returns a new instance of Static.
38 39 40 41 42 43 44 |
# File 'lib/lane_groove.rb', line 38 def initialize(app, ={}) # don't default to 'index.html' as per https://github.com/lgierth/rack/blob/5ab871f2a86ca4f943a5b1d0a3d0f32a2f9f77ef/lib/rack/static.rb @app = app @urls = [:urls] root = [:root] @file_server = Rack::File.new(root) end |