Module: Notifier::OsxNotification
- Extended by:
- OsxNotification
- Included in:
- OsxNotification
- Defined in:
- lib/git/background/notifier_ext/osx_notification.rb
Instance Method Summary collapse
Instance Method Details
#notify(options) ⇒ Object
12 13 14 15 16 |
# File 'lib/git/background/notifier_ext/osx_notification.rb', line 12 def notify() notifier_opts = { title: [:title], group: Process.pid } notifier_opts[:subtitle] = [:subtitle] if [:subtitle] TerminalNotifier.notify [:message], notifier_opts end |
#supported? ⇒ Boolean
8 9 10 |
# File 'lib/git/background/notifier_ext/osx_notification.rb', line 8 def supported? TerminalNotifier::available? end |