Top Level Namespace
Defined Under Namespace
Modules: Redirect
Constant Summary collapse
- APP =
{}
Instance Method Summary collapse
Instance Method Details
#redirect(*redirects) ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'lib/redirect/redirect.rb', line 54 def redirect(*redirects) Redirect.app = Redirect::App.new(*redirects) if Redirect.autorun Rack::Handler::WEBrick.run \ Rack::ShowExceptions.new(Rack::Lint.new(Redirect.app)), :Port => 3000 run Redirect.app end end |