lib/arborist/observer.rb in arborist-0.0.1.pre20160829140603 vs lib/arborist/observer.rb in arborist-0.0.1.pre20161005112841

- old
+ new

@@ -105,11 +105,11 @@ ### where:: ### a Hash of criteria to match against event data ### on:: ### the identifier of the node to subscribe on, defaults to the root node ## which receives all node events. - def subscribe( to: nil, where: {}, on: nil ) - @subscriptions << { criteria: where, identifier: on, event_type: to } + def subscribe( to: nil, where: {}, exclude: {}, on: nil ) + @subscriptions << { criteria: where, exclude: exclude, identifier: on, event_type: to } end ### Register an action that will be taken when a subscribed event is received. def action( options={}, &block )