exec_if()
Execute the given block if notifications are enabled.
# File lib/irb/notifier.rb, line 100 def exec_if yield(@base_notifier) if notify? end