Class: Meshchat::Ui::Notifier::Base

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

Overview

This is the default notification implementation

  • Uses Libnotify

Only use one notification and update continuously, so that the notification area / tray doesn’t become flooded by this app

To write your own notifier, just override the show method in a subclass of this class

Direct Known Subclasses

LibNotify

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.instanceObject



22
23
24
# File 'lib/meshchat/ui/notifier/base.rb', line 22

def instance
  @instance ||= new
end

Instance Method Details

#show(*args) ⇒ Object



27
28
29
# File 'lib/meshchat/ui/notifier/base.rb', line 27

def show(*args)
  # by default don't notify
end