lib/scrapple/middleware_stack.rb
# Returns a full application with all apps in the stack.
Returns a full application with all apps in the stack.
Returns a full application with all apps in the stack .
def to_app
      Rack::Builder.new do
        Scrapple.middleware_stack.middleware.each do |ware|
          use ware[0], *ware[1], &ware[2]
        end
        run Scrapple.middleware_stack.endpoint
      end 
    end
def to_app Rack :: Builder . new do Scrapple . middleware_stack . middleware . each do | ware | use ware [ 0 ] , * ware [ 1 ] , & ware [ 2 ] end run Scrapple . middleware_stack . endpoint end end
Returns a full application with all apps in the stack.
Returns a full application with all apps in the stack .