Class: Sinatra::Wrapper
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/sinatra/base.rb |
Class Method Summary
- .new(stack, instance) ⇒ Wrapper constructor
Instance Method Summary
Constructor Details
.new(stack, instance) ⇒ Wrapper
# File 'lib/sinatra/base.rb', line 2124
def initialize(stack, instance) @stack = stack @instance = instance end
Instance Method Details
#call(env)
[ GitHub ]# File 'lib/sinatra/base.rb', line 2137
def call(env) @stack.call(env) end
#helpers
[ GitHub ]# File 'lib/sinatra/base.rb', line 2133
def helpers @instance end
#inspect
[ GitHub ]# File 'lib/sinatra/base.rb', line 2141
def inspect "#<#{@instance.class} app_file=#{settings.app_file.inspect}>" end