Class: Tamarillo::Notification::Touch
- Inherits:
-
Object
- Object
- Tamarillo::Notification::Touch
- Defined in:
- lib/tamarillo/notification/touch.rb
Instance Method Summary collapse
-
#call ⇒ Object
Public: executes the notification.
-
#initialize(path) ⇒ Touch
constructor
Public: initializes a new notifier.
Constructor Details
#initialize(path) ⇒ Touch
Public: initializes a new notifier.
5 6 7 |
# File 'lib/tamarillo/notification/touch.rb', line 5 def initialize(path) @path = File.(path) end |
Instance Method Details
#call ⇒ Object
Public: executes the notification.
10 11 12 |
# File 'lib/tamarillo/notification/touch.rb', line 10 def call system("touch #{@path}") end |