Module: Notifiers
- Defined in:
- lib/notifiers.rb,
lib/notifiers/base.rb,
lib/notifiers/dunstify.rb,
lib/notifiers/osascript.rb,
lib/notifiers/notify_send.rb,
lib/notifiers/terminal_notifier.rb,
lib/notifiers/notifier_not_found.rb
Defined Under Namespace
Classes: Base, Dunstify, NotifierNotFound, NotifySend, Osascript, TerminalNotifier
Instance Method Summary
collapse
Instance Method Details
#auto_discover ⇒ Object
25
26
27
28
29
|
# File 'lib/notifiers.rb', line 25
def auto_discover
notifier = Notifiers::Base.subclasses.find(&:installed?) or raise NotifierNotFound
notifier.new
end
|
#dunstify ⇒ Object
21
22
23
|
# File 'lib/notifiers.rb', line 21
def dunstify
Dunstify.new
end
|
#notify_send ⇒ Object
Also known as:
lib_notify
16
17
18
|
# File 'lib/notifiers.rb', line 16
def notify_send
NotifySend.new
end
|
#osascript ⇒ Object
12
13
14
|
# File 'lib/notifiers.rb', line 12
def osascript
Osascript.new
end
|
#terminal_notifier ⇒ Object
8
9
10
|
# File 'lib/notifiers.rb', line 8
def terminal_notifier
TerminalNotifier.new
end
|