Class: Notifaction::Type::Linux
- Defined in:
- lib/notifaction/types/linux.rb
Constant Summary
Constants inherited from Base
Base::OK, Base::QUIT, Base::QUIT_SOFT
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#fire_hooks, #initialize, #ok, #quit, #quit_ok, #quit_soft
Constructor Details
This class inherits a constructor from Notifaction::Type::Base
Instance Method Details
#bubble(message, title) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/notifaction/types/linux.rb', line 6 def bubble(, title) @response = `notify-send "#{title}" "#{}"` $?.exitstatus == 0 fire_hooks({ method: __method__, message: , title: title }) end |
#modal(message, title) ⇒ Object
15 16 17 |
# File 'lib/notifaction/types/linux.rb', line 15 def modal(, title) nil end |