Method: Notifies.notify

Defined in:
lib/notifies.rb

.notify(msg, options = {}) ⇒ Object



16
17
18
19
20
# File 'lib/notifies.rb', line 16

def self.notify msg, options = {}
  return false if !@@enabled or (options.key?(:enabled) and !options[:enabled])
  n = notifier options
  n ? n.notify(msg, options) : nil
end