Module: Roy::Halt::InstanceMethods
- Defined in:
- lib/roy/halt.rb
Instance Method Summary collapse
-
#halt(code, message = nil) ⇒ Integer, String
Break from the current catch(:halt) block.
Instance Method Details
#halt(code, message = nil) ⇒ Integer, String
Break from the current catch(:halt) block
34 35 36 |
# File 'lib/roy/halt.rb', line 34 def halt(code, =nil) throw :halt, [code, || Rack::Utils::HTTP_STATUS_CODES[code]] end |