class Sinatra::Base

def new(*args, &bk)

an instance of the class new was called on.
pipeline. The object is guaranteed to respond to #call but may not be
Create a new instance of the class fronted by its middleware
def new(*args, &bk)
  build(Rack::Builder.new, *args, &bk).to_app
end