vendor/bundle/ruby/1.8/gems/sinatra-1.2.8/lib/sinatra/base.rb
# Creates a Rack::Builder instance with all the middleware set up and
# an instance of this class as end point.
Creates a Rack::Builder instance with all the middleware set up and
an instance of this class as end point.
Creates a Rack :: Builder instance with all the middleware set up and an instance of this class as end point .
def build(*args, &bk)
        builder = Rack::Builder.new
        builder.use Rack::MethodOverride if method_override?
        builder.use ShowExceptions       if show_exceptions?
        builder.use Rack::CommonLogger   if logging?
        builder.use Rack::Head
        setup_sessions builder
        middleware.each { |c,a,b| builder.use(c, *a, &b) }
        builder.run new!(*args, &bk)
        builder
      end
def build ( * args , & bk ) builder = Rack :: Builder . new builder . use Rack :: MethodOverride if method_override? builder . use ShowExceptions if show_exceptions? builder . use Rack :: CommonLogger if logging? builder . use Rack :: Head setup_sessions builder middleware . each { | c , a , b | builder . use ( c , * a , & b ) } builder . run new! ( * args , & bk ) builder end
Creates a Rack::Builder instance with all the middleware set up and
an instance of this class as end point.
Creates a Rack :: Builder instance with all the middleware set up and an instance of this class as end point .
args
bk