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.
2101 2102 2103 2104 |
# File 'lib/sinatra/base.rb', line 2101 def initialize(stack, instance) @stack = stack @instance = instance end |
Instance Method Details
#call(env) ⇒ Object
2114 2115 2116 |
# File 'lib/sinatra/base.rb', line 2114 def call(env) @stack.call(env) end |
#helpers ⇒ Object
2110 2111 2112 |
# File 'lib/sinatra/base.rb', line 2110 def helpers @instance end |
#inspect ⇒ Object
2118 2119 2120 |
# File 'lib/sinatra/base.rb', line 2118 def inspect "#<#{@instance.class} app_file=#{settings.app_file.inspect}>" end |
#settings ⇒ Object
2106 2107 2108 |
# File 'lib/sinatra/base.rb', line 2106 def settings @instance.settings end |