Class: Fewer::MiddleWare
- Inherits:
-
Object
- Object
- Fewer::MiddleWare
- Defined in:
- lib/fewer/middleware.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, name, options = {}) ⇒ MiddleWare
constructor
A new instance of MiddleWare.
Constructor Details
#initialize(app, name, options = {}) ⇒ MiddleWare
Returns a new instance of MiddleWare.
3 4 5 6 7 8 |
# File 'lib/fewer/middleware.rb', line 3 def initialize(app, name, = {}) @name = name @options = @app = app @mount = @options[:mount] end |