Class: Sinatra::Request
- Defined in:
- padrino-core/lib/padrino-core/ext/sinatra.rb
Overview
Adds to Sinatra controller
informations
Instance Attribute Summary collapse
-
#route_obj ⇒ Object
Returns the value of attribute route_obj.
Instance Method Summary collapse
Instance Attribute Details
#route_obj ⇒ Object
Returns the value of attribute route_obj.
7 8 9 |
# File 'padrino-core/lib/padrino-core/ext/sinatra.rb', line 7 def route_obj @route_obj end |
Instance Method Details
#action ⇒ Object
12 13 14 |
# File 'padrino-core/lib/padrino-core/ext/sinatra.rb', line 12 def action route_obj && route_obj.action end |
#controller ⇒ Object
9 10 11 |
# File 'padrino-core/lib/padrino-core/ext/sinatra.rb', line 9 def controller route_obj && route_obj.controller end |