method
new
v5.0.0.1 -
Show latest stable
- Class:
ActionDispatch::FileHandler
new(root, index: 'index', headers: {})public
No documentation available.
# File actionpack/lib/action_dispatch/middleware/static.rb, line 16
def initialize(root, index: 'index', headers: {})
@root = root.chomp('/')
@file_server = ::Rack::File.new(@root, headers)
@index = index
end