Class: Meshchat::Ui::Notifier::LibNotify

Inherits:
Base
  • Object
show all
Defined in:
lib/meshchat/ui/notifier/lib_notify.rb

Overview

Inherit from base to obtain singletonness

Meshchat uses singletons for notifications, because an OS generally only has one notification system

Instance Method Summary collapse

Methods inherited from Base

instance

Instance Method Details

#show(*args) ⇒ Object

this is the only method that needs to be overwritten



11
12
13
14
15
# File 'lib/meshchat/ui/notifier/lib_notify.rb', line 11

def show(*args)
  libnotify_message.update(*args) do |notify|
    yield(notify) if block_given?
  end
end