Class: Salemove::ProcessHandler::GrowlNotifier
- Inherits:
-
Object
- Object
- Salemove::ProcessHandler::GrowlNotifier
- Defined in:
- lib/salemove/process_handler/notifier_factory.rb
Instance Method Summary collapse
-
#initialize(process_name) ⇒ GrowlNotifier
constructor
A new instance of GrowlNotifier.
- #notify_or_ignore(error, _) ⇒ Object
Constructor Details
#initialize(process_name) ⇒ GrowlNotifier
Returns a new instance of GrowlNotifier.
28 29 30 |
# File 'lib/salemove/process_handler/notifier_factory.rb', line 28 def initialize(process_name) @process_name = process_name end |
Instance Method Details
#notify_or_ignore(error, _) ⇒ Object
32 33 34 |
# File 'lib/salemove/process_handler/notifier_factory.rb', line 32 def notify_or_ignore(error, _) Growl.notify error., title: "Error in #{@process_name}" end |