lib/sculd/plan/reminder.rb in sculd-0.0.3 vs lib/sculd/plan/reminder.rb in sculd-0.1.0
- old
+ new
@@ -1,25 +1,28 @@
#! /usr/bin/env ruby
# coding: utf-8
-require "sculd/event.rb"
-require "sculd/plan.rb"
+#require "sculd/event.rb"
+#require "sculd/plan.rb"
#
#
#
class Sculd::Plan::Reminder < Sculd::Plan
+
+ SYMBOL_CHAR = "-"
+
# value of @option does not work
def priority(today = Date.now)
if today < @datetime
return 0
else
#@option = 1 if @option < 1
return Sculd::Plan::REMINDER_PRIORITY - (today - @datetime) #/@option
end
end
- def events
- return [Sculd::Event.new(@datetime, @description)]
+ def event_dates
+ [Date.new(@datetime.year, @datetime.month, @datetime.day)]
end
end