Class: Redirect
- Inherits:
-
Object
- Object
- Redirect
- Defined in:
- lib/rack-rscript.rb
Instance Attribute Summary collapse
-
#to_url ⇒ Object
readonly
Returns the value of attribute to_url.
Instance Method Summary collapse
-
#initialize(url) ⇒ Redirect
constructor
A new instance of Redirect.
Constructor Details
#initialize(url) ⇒ Redirect
Returns a new instance of Redirect.
21 22 23 |
# File 'lib/rack-rscript.rb', line 21 def initialize(url) @to_url = url end |
Instance Attribute Details
#to_url ⇒ Object (readonly)
Returns the value of attribute to_url.
19 20 21 |
# File 'lib/rack-rscript.rb', line 19 def to_url @to_url end |