Sha256: 3c1b0c152d431c2f8b575b880c4b719867182d7dc85e7d6f2c40d888fdcdc2ed

Contents?: true

Size: 494 Bytes

Versions: 6

Compression:

Stored size: 494 Bytes

Contents

#! /usr/bin/env ruby
# coding: utf-8

#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 event_dates
    [Date.new(@datetime.year, @datetime.month, @datetime.day)]
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sculd-0.2.2 lib/sculd/plan/reminder.rb
sculd-0.2.1 lib/sculd/plan/reminder.rb
sculd-0.2.0 lib/sculd/plan/reminder.rb
sculd-0.1.2 lib/sculd/plan/reminder.rb
sculd-0.1.1 lib/sculd/plan/reminder.rb
sculd-0.1.0 lib/sculd/plan/reminder.rb