Exception: Rack::RedirectRequest
- Inherits:
-
Exception
- Object
- Exception
- Rack::RedirectRequest
- Defined in:
- lib/rack/redirector.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
-
#initialize(location) ⇒ RedirectRequest
constructor
A new instance of RedirectRequest.
Constructor Details
#initialize(location) ⇒ RedirectRequest
Returns a new instance of RedirectRequest.
4 5 6 7 |
# File 'lib/rack/redirector.rb', line 4 def initialize(location) @location = location super "redirect to #{location}" end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
3 4 5 |
# File 'lib/rack/redirector.rb', line 3 def location @location end |