Method: WEBrick::HTTPStatus.redirect?
- Defined in:
- lib/webrick/httpstatus.rb
.redirect?(code) ⇒ Boolean
Is code a redirection status?
158 159 160 |
# File 'lib/webrick/httpstatus.rb', line 158 def redirect?(code) code.to_i >= 300 and code.to_i < 400 end |