Class: Sinatra::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/padrino-core/ext/sinatra.rb

Overview

Adds to Sinatra controller informations

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#route_objObject

Returns the value of attribute route_obj.



7
8
9
# File 'lib/padrino-core/ext/sinatra.rb', line 7

def route_obj
  @route_obj
end

Instance Method Details

#actionObject



12
13
14
# File 'lib/padrino-core/ext/sinatra.rb', line 12

def action
  route_obj && route_obj.action
end

#controllerObject



9
10
11
# File 'lib/padrino-core/ext/sinatra.rb', line 9

def controller
  route_obj && route_obj.controller
end