Class: Jabs::Rack::Static

Inherits:
Rack::Static
  • Object
show all
Defined in:
lib/jabs/middleware.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, options = {}) ⇒ Static

Returns a new instance of Static.



20
21
22
23
24
# File 'lib/jabs/middleware.rb', line 20

def initialize(app, options={})
  super(app, options)
  root = options[:root] || Dir.pwd
  @file_server = Jabs::Rack::File.new(root)
end