Class: Gopher::Redirect::RedirectHandler
- Inherits:
-
Handler
- Object
- Handler
- Gopher::Redirect::RedirectHandler
show all
- Defined in:
- lib/gopher/redirect.rb
Instance Attribute Summary
Attributes inherited from Handler
#app
Instance Method Summary
collapse
Methods inherited from Handler
#bindto, #host, #port, #with
Instance Method Details
#call(*url) ⇒ Object
18
19
20
21
22
|
# File 'lib/gopher/redirect.rb', line 18
def call(*url)
input = File.read(application.redirect_template)
eruby = Erubis::Eruby.new(input)
return eruby.result(binding())
end
|