Sha256: 2b346e64317e2729d1a41e4deaf9f5051fc322aa659843f5996072f66c3a2abd
Contents?: true
Size: 985 Bytes
Versions: 3
Compression:
Stored size: 985 Bytes
Contents
module RiCal class PropertyValue class RecurrenceRule < PropertyValue #- ©2009 Rick DeNatale, All rights reserved. Refer to the file README.txt for the license # class OccurrenceIncrementer # :nodoc: class ByNumberedDayIncrementer < ListIncrementer #:nodoc: def daily_incrementer? true end def occurrences_for(date_time) if occurrences && @scoping_value == scope_of(date_time) occurrences else @scoping_value = scope_of(date_time) self.occurrences = list.map {|numbered_day| numbered_day.target_date_time_for(date_time)}.uniq.sort occurrences end end def end_of_occurrence(date_time) date_time.end_of_day end def candidate_acceptible?(candidate) list.any? {|by_part| by_part.include?(candidate)} end end end end end end
Version data entries
3 entries across 3 versions & 2 rubygems