Sha256: 946ea3da72cd69f87275b10f9e269f78d1466e386cf6c5e286374cbc55e40d80

Contents?: true

Size: 509 Bytes

Versions: 1

Compression:

Stored size: 509 Bytes

Contents

module RiCal
  class PropertyValue
    class RecurrenceRule < PropertyValue
      class OccurrenceIncrementer # :nodoc:
        class MinutelyIncrementer < FrequencyIncrementer #:nodoc:
          def self.for_rrule(rrule)
            conditional_incrementer(rrule, "MINUTELY", BySecondIncrementer)
          end

          def advance_what
            :minutes
          end

          def end_of_occurrence(date_time)
            date_time.end_of_minute
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
friflaj_ri_cal-0.9.0 lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/minutely_incrementer.rb