lib/arborist/observer.rb in arborist-0.5.0 vs lib/arborist/observer.rb in arborist-0.6.0
- old
+ new
@@ -112,17 +112,17 @@
@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 )
- @actions << Arborist::Observer::Action.new( options, &block )
+ def action( **options, &block )
+ @actions << Arborist::Observer::Action.new( **options, &block )
end
### Register a summary action.
- def summarize( options={}, &block )
- @actions << Arborist::Observer::Summarize.new( options, &block )
+ def summarize( **options, &block )
+ @actions << Arborist::Observer::Summarize.new( **options, &block )
end
### Return a client singleton for optional observer callbacks to the
### manager.