Sha256: 235203e1a48ff488bd4a4f086ce2df5955f00b0620816217434761eb40b4ee53

Contents?: true

Size: 980 Bytes

Versions: 11

Compression:

Stored size: 980 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.unneeded?(candidate)
            true
          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

11 entries across 11 versions & 6 rubygems

Version Path
demingfactor-ri_cal-0.10.0 lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb
demingfactor-ri_cal-0.9.0 lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb
awallis-ri_cal-0.8.8 lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb
justinsoong-ri_cal-0.8.9 lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb
justinsoong-ri_cal-0.8.8 lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb
micahwedemeyer-ri_cal-0.8.10 lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb
micahwedemeyer-ri_cal-0.8.9 lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb
ri_cal-0.8.8 lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb
ri_cal-0.8.7 lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb
ri_cal-0.8.6 lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb
miguelbaldi-ri_cal-0.1 lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb