Class: Gopher::Redirect::RedirectHandler
- Defined in:
- lib/gopher/redirect.rb
Instance Attribute Summary
Attributes inherited from Handler
Instance Method Summary collapse
Methods inherited from Handler
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 |