A wrapper class for ordering the handlers. It is used only while the ResultHandlers object is being constructed.

Methods
Attributes
[R] after The array of handler names that should come before this one.
[R] before The array of handler names that should come after this one.
[R] handler The handler service itself.
[R] name The name of the service. Possibly nil.
Public Class methods
new( definition )

Create a new HandlerOrderingWrapper instance from the given handler definition. The definition will be a hash.

    # File lib/copland/webrick/result-handlers.rb, line 64
64:         def initialize( definition )
65:           @handler = definition[ 'service' ]
66:           @name = definition[ 'name' ]
67:           @before = [ *( definition[ 'before' ] || [] ) ]
68:           @after = [ *( definition[ 'after' ] || [] ) ]
69:         end
Public Instance methods
after?( handler )

Return true if the given handler (a HandlerOrderingWrapper instance) should be ordered before self.

    # File lib/copland/webrick/result-handlers.rb, line 80
80:         def after?( handler )
81:           @after.include?( handler.name ) ||
82:             handler.before.include?( @name )
83:         end
before?( handler )

Return true if the given handler (a HandlerOrderingWrapper instance) should be ordered after self.

    # File lib/copland/webrick/result-handlers.rb, line 73
73:         def before?( handler )
74:           @before.include?( handler.name ) ||
75:             handler.after.include?( @name )
76:         end