method
new
v3.1.0 -
Show latest stable
- Class:
ActionDispatch::FileHandler
new(root, cache_control)public
No documentation available.
# File actionpack/lib/action_dispatch/middleware/static.rb, line 5
def initialize(root, cache_control)
@root = root.chomp('/')
@compiled_root = /^#{Regexp.escape(root)}/
@file_server = ::Rack::File.new(@root, cache_control)
end