class Task
Attributes
_d[RW]
text[RW]
Public Class Methods
new(text)
click to toggle source
# File lib/todoNotifier/Task.rb, line 6 def initialize(text) self._d = text self.text = text.strip end
Public Instance Methods
notify()
click to toggle source
# File lib/todoNotifier/Task.rb, line 11 def notify() TerminalNotifier.notify(self.text, :title => 'TODO', :group => Process.pid) end
to_s()
click to toggle source
# File lib/todoNotifier/Task.rb, line 15 def to_s() self.text + ' ' + self._d.to_s end