Class: Gopher::Redirect::RedirectHandler

Inherits:
Handler show all
Defined in:
lib/gopher/redirect.rb

Instance Attribute Summary

Attributes inherited from Handler

#application

Instance Method Summary collapse

Methods inherited from Handler

#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