Sha256: 842e3088698444f592259d4b4fe5692c71ac13c4aee6898da0260c88d3f9957c

Contents?: true

Size: 224 Bytes

Versions: 10

Compression:

Stored size: 224 Bytes

Contents

require 'orange/middleware/base'
module Orange::Middleware
  
  class Rerouter < Base
    def packet_call(packet)
      begin
        pass packet
      rescue Orange::Reroute
        packet.finish
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
orange-0.0.13 lib/orange/middleware/rerouter.rb
orange-0.0.12 lib/orange/middleware/rerouter.rb
orange-0.0.10 lib/orange/middleware/rerouter.rb
orange-0.0.8 lib/orange/middleware/rerouter.rb
orange-0.0.7 lib/orange/middleware/rerouter.rb
orange-0.0.6 lib/orange/middleware/rerouter.rb
orange-0.0.5 lib/orange/middleware/rerouter.rb
orange-0.0.4 lib/orange/middleware/rerouter.rb
orange-0.0.3 lib/orange/middleware/rerouter.rb
orange-0.0.2 lib/orange/middleware/rerouter.rb