Exception: Rack::RedirectRequest

Inherits:
Exception
  • Object
show all
Defined in:
lib/rack/redirector.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#locationObject (readonly)

Returns the value of attribute location.



3
4
5
# File 'lib/rack/redirector.rb', line 3

def location
  @location
end