123456789_123456789_123456789_123456789_123456789_

Class: Sinatra::Wrapper

Relationships & Source Files
Inherits: Object
Defined in: lib/sinatra/base.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(stack, instance) ⇒ Wrapper

[ GitHub ]

  
# 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

#settings

[ GitHub ]

  
# File 'lib/sinatra/base.rb', line 2129

def settings
  @instance.settings
end