Method: Grape::Middleware::Stack#merge_with
- Defined in:
- lib/grape/middleware/stack.rb
#merge_with(middleware_specs) ⇒ Object
76 77 78 79 80 81 82 83 84 |
# File 'lib/grape/middleware/stack.rb', line 76 def merge_with(middleware_specs) middleware_specs.each do |operation, *args| if args.last.is_a?(Proc) public_send(operation, *args, &args.pop) else public_send(operation, *args) end end end |