Class: Focus::ToggleMacNotificationCenter
- Defined in:
- lib/focus/actions/toggle_mac_notification_center.rb
Instance Method Summary collapse
Methods inherited from Action
#call, #config, #error_message
Instance Method Details
#perform ⇒ Object
3 4 5 6 |
# File 'lib/focus/actions/toggle_mac_notification_center.rb', line 3 def perform fail_action!(error: "This action only works on MacOSX") unless mac? toggle end |