Class: Raki::Slice
- Inherits:
-
Middleware
- Object
- Middleware
- Raki::Slice
- Defined in:
- lib/raki/slice.rb
Instance Attribute Summary
Attributes inherited from Middleware
Instance Method Summary collapse
Methods inherited from Middleware
Constructor Details
This class inherits a constructor from Raki::Middleware
Instance Method Details
#call(env) ⇒ Object
6 7 8 9 10 |
# File 'lib/raki/slice.rb', line 6 def call(env) my_env = env.slice(*@args.flatten) app = @block || @app app.call(my_env) end |