class Sinatra::Base
def new(*args, **kwargs, &bk)
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, **kwargs, &bk) instance = new!(*args, **kwargs, &bk) Wrapper.new(build(instance).to_app, instance) end