Module: Tocsin::Notifiers
- Defined in:
- lib/tocsin/notifiers.rb,
lib/tocsin/notifiers/email_notifier.rb
Defined Under Namespace
Classes: EmailNotifier
Class Method Summary collapse
Class Method Details
.[](key) ⇒ Object
15 16 17 |
# File 'lib/tocsin/notifiers.rb', line 15 def self.[](key) notifiers[key] end |
.default_notifier ⇒ Object
3 4 5 |
# File 'lib/tocsin/notifiers.rb', line 3 def self.default_notifier :email end |
.notifiers ⇒ Object
7 8 9 |
# File 'lib/tocsin/notifiers.rb', line 7 def self.notifiers @notifiers ||= {} end |
.register!(key, notifier) ⇒ Object
11 12 13 |
# File 'lib/tocsin/notifiers.rb', line 11 def self.register!(key, notifier) notifiers.store(key, notifier) end |