lib/grape/middleware_stack.rb
# Apply this middleware stack to a
# Rack application.
Apply this middleware stack to a
Rack application.
Apply this middleware stack to a Rack application .
def to_app(app)
      b = Rack::Builder.new
      for middleware in stack
        b.use *middleware
      end
      b.run app
      b.to_app
    end
def to_app ( app ) b = Rack :: Builder . new for middleware in stack b . use * middleware end b . run app b . to_app end
Apply this middleware stack to a
Rack application.
Apply this middleware stack to a Rack application .
app
<not_specific>