Module: Orange::Pulp::Packet_Reroute

Defined in:
lib/orange-core/middleware/rerouter.rb

Instance Method Summary collapse

Instance Method Details

#reroute(url, type = :real, *args) ⇒ Object

Raises:



22
23
24
25
26
27
# File 'lib/orange-core/middleware/rerouter.rb', line 22

def reroute(url, type = :real, *args)
  packet['reroute.to'] = url
  packet['reroute.type'] = type
  packet['reroute.args'] = *args if args
  raise Reroute.new(self), 'Unhandled reroute'
end