Sha256: f1014c20b1276ae2b7f8f68dc2704ffcf64a1831784382aa93a11f1e090cc589

Contents?: true

Size: 898 Bytes

Versions: 3

Compression:

Stored size: 898 Bytes

Contents

module RiCal
  class PropertyValue
    class RecurrenceRule < PropertyValue
      class OccurrenceIncrementer # :nodoc:
        #- ©2009 Rick DeNatale, All rights reserved. Refer to the file README.txt for the license
        #
        class NullSubCycleIncrementer #:nodoc:
          def self.next_time(previous)
            nil
          end

          def self.add_outer_incrementer(incrementer)
          end

          def self.first_within_outer_cycle(previous_occurrence, outer_cycle_range)
            outer_cycle_range.first
          end

          def self.first_sub_occurrence(previous_occurrence, outer_cycle_range)
            nil
          end

          def self.cycle_adjust(date_time)
            date_time
          end

          def self.to_s
            "NULL-INCR"
          end

          def inspect
            to_s
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
rubyredrick-ri_cal-0.8.4 lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb
ri_cal-0.8.5 lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb
ri_cal-0.8.4 lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb