Class: Sinatra::Wrapper
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/sinatra-3.0.5/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.
1993 1994 1995 1996 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/sinatra-3.0.5/lib/sinatra/base.rb', line 1993 def initialize(stack, instance) @stack = stack @instance = instance end |
Instance Method Details
#call(env) ⇒ Object
2006 2007 2008 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/sinatra-3.0.5/lib/sinatra/base.rb', line 2006 def call(env) @stack.call(env) end |
#helpers ⇒ Object
2002 2003 2004 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/sinatra-3.0.5/lib/sinatra/base.rb', line 2002 def helpers @instance end |
#inspect ⇒ Object
2010 2011 2012 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/sinatra-3.0.5/lib/sinatra/base.rb', line 2010 def inspect "#<#{@instance.class} app_file=#{settings.app_file.inspect}>" end |
#settings ⇒ Object
1998 1999 2000 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/sinatra-3.0.5/lib/sinatra/base.rb', line 1998 def settings @instance.settings end |