Class: Tamarillo::Notification::Touch

Inherits:
Object
  • Object
show all
Defined in:
lib/tamarillo/notification/touch.rb

Instance Method Summary collapse

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.expand_path(path)
end

Instance Method Details

#callObject

Public: executes the notification.



10
11
12
# File 'lib/tamarillo/notification/touch.rb', line 10

def call
  system("touch #{@path}")
end