Class: Sinatra::Wrapper
- Inherits:
-
Object
- Object
- Sinatra::Wrapper
- Defined in:
- lib/sinatra/base.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
- #helpers ⇒ Object
-
#initialize(stack, instance) ⇒ Wrapper
constructor
A new instance of Wrapper.
- #inspect ⇒ Object
- #settings ⇒ Object
Constructor Details
#initialize(stack, instance) ⇒ Wrapper
Returns a new instance of Wrapper.
2068 2069 2070 2071 |
# File 'lib/sinatra/base.rb', line 2068 def initialize(stack, instance) @stack = stack @instance = instance end |
Instance Method Details
#call(env) ⇒ Object
2081 2082 2083 |
# File 'lib/sinatra/base.rb', line 2081 def call(env) @stack.call(env) end |
#helpers ⇒ Object
2077 2078 2079 |
# File 'lib/sinatra/base.rb', line 2077 def helpers @instance end |
#inspect ⇒ Object
2085 2086 2087 |
# File 'lib/sinatra/base.rb', line 2085 def inspect "#<#{@instance.class} app_file=#{settings.app_file.inspect}>" end |
#settings ⇒ Object
2073 2074 2075 |
# File 'lib/sinatra/base.rb', line 2073 def settings @instance.settings end |