Module: Hobby::Singleton
- Extended by:
- Forwardable
- Defined in:
- lib/hobby.rb
Instance Attribute Summary collapse
-
#request ⇒ Object
Returns the value of attribute request.
-
#response ⇒ Object
Returns the value of attribute response.
-
#router ⇒ Object
Returns the value of attribute router.
Instance Method Summary collapse
Instance Attribute Details
#request ⇒ Object
Returns the value of attribute request.
17 18 19 |
# File 'lib/hobby.rb', line 17 def request @request end |
#response ⇒ Object
Returns the value of attribute response.
17 18 19 |
# File 'lib/hobby.rb', line 17 def response @response end |
#router ⇒ Object
Returns the value of attribute router.
17 18 19 |
# File 'lib/hobby.rb', line 17 def router @router end |
Instance Method Details
#new ⇒ Object
19 20 21 |
# File 'lib/hobby.rb', line 19 def new (*) super.router.to_rack_app end |