Class: Useless::Rack::FS
- Inherits:
-
Object
- Object
- Useless::Rack::FS
- Defined in:
- lib/useless/rack/fs.rb
Overview
‘Rack::FS` adds the Useless.fs instance to the env as ’useless.fs’.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ FS
constructor
A new instance of FS.
Constructor Details
#initialize(app) ⇒ FS
Returns a new instance of FS.
7 8 9 |
# File 'lib/useless/rack/fs.rb', line 7 def initialize(app) @app = app end |