Class: Redirect

Inherits:
Object
  • Object
show all
Defined in:
lib/rack-rscript.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ Redirect

Returns a new instance of Redirect.



23
24
25
# File 'lib/rack-rscript.rb', line 23

def initialize(url)
  @to_url = url
end

Instance Attribute Details

#to_urlObject (readonly)

Returns the value of attribute to_url.



21
22
23
# File 'lib/rack-rscript.rb', line 21

def to_url
  @to_url
end