Method: Roby::Application#on_notification
- Defined in:
- lib/roby/app.rb
#on_notification(user: false) {|source, level, message| ... } ⇒ Object
Registers a block to be called when a message needs to be dispatched from #notify
3286 3287 3288 3289 3290 |
# File 'lib/roby/app.rb', line 3286 def on_notification(user: false, &block) raise ArgumentError, "missing expected block argument" unless block add_lifecyle_hook(notification_listeners, block, user: user) end |