Method: Sinatra::Base#halt
- Defined in:
- lib/sinatra/base.rb
#halt(*response) ⇒ Object
Exit the current block, halts any further processing of the request, and returns the specified response.
1030 1031 1032 1033 |
# File 'lib/sinatra/base.rb', line 1030 def halt(*response) response = response.first if response.length == 1 throw :halt, response end |