Module: Sinatra::Resilient::Route::Helpers
- Defined in:
- lib/sinatra/resilient/route.rb
Instance Method Summary collapse
Instance Method Details
#ensure_sinatra_route ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/sinatra/resilient/route.rb', line 12 def ensure_sinatra_route unless env["sinatra.resilient.route"] Array(settings.routes[@request.request_method]).each do |pattern, conditions, _| break if process_route(pattern, conditions) { :found_route } == :found_route end end env["sinatra.route"] = env["sinatra.resilient.route"] end |
#route_method ⇒ Object
27 28 29 30 |
# File 'lib/sinatra/resilient/route.rb', line 27 def route_method ensure_sinatra_route env["sinatra.resilient.route_method"] end |
#route_signature ⇒ Object
22 23 24 25 |
# File 'lib/sinatra/resilient/route.rb', line 22 def route_signature ensure_sinatra_route env["sinatra.resilient.route_signature"] end |