Class: Rack::Builder
- Inherits:
-
Object
- Object
- Rack::Builder
- Defined in:
- lib/chassis/rack/builder_shim_patch.rb
Instance Method Summary collapse
Instance Method Details
#shim(middleware, *args, &block) ⇒ Object
3 4 5 |
# File 'lib/chassis/rack/builder_shim_patch.rb', line 3 def shim(middleware, *args, &block) @use.unshift proc { |app| middleware.new(app, *args, &block) } end |