Class: Rack::App::Middlewares::Params::Setter
- Inherits:
-
Object
- Object
- Rack::App::Middlewares::Params::Setter
- Defined in:
- lib/rack/app/middlewares/params/setter.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Setter
constructor
A new instance of Setter.
Constructor Details
#initialize(app) ⇒ Setter
Returns a new instance of Setter.
3 4 5 |
# File 'lib/rack/app/middlewares/params/setter.rb', line 3 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
7 8 9 10 11 |
# File 'lib/rack/app/middlewares/params/setter.rb', line 7 def call(env) Rack::App::Params.new(env).to_hash @app.call(env) end |