# File lib/packetthief/redirect_rule.rb, line 8 def initialize(handler) @handler = handler end
# File lib/packetthief/redirect_rule.rb, line 19 def redirect(args) rule = clone rule.redirectspec = args rule end
# File lib/packetthief/redirect_rule.rb, line 25 def run @handler.run(self) end
specify an original destination
# File lib/packetthief/redirect_rule.rb, line 13 def where(args) rule = clone rule.rulespec = args rule end