class method
self.new
Ruby on Rails 8.1.2
Since v3.0.20Signature
self.new(app, path, index: "index", headers: {})
No documentation comment.
Parameters
-
appreq -
pathreq -
indexkey = "index" -
headerskey = {}
Source
# File actionpack/lib/action_dispatch/middleware/static.rb, line 21
def initialize(app, path, index: "index", headers: {})
@app = app
@file_handler = FileHandler.new(path, index: index, headers: headers)
end
Defined in actionpack/lib/action_dispatch/middleware/static.rb line 21
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Static