Class: RiCal::PropertyValue::RecurrenceRule::OccurrenceIncrementer::NullSubCycleIncrementer

Inherits:
Object
  • Object
show all
Defined in:
lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb

Overview

  • ©2009 Rick DeNatale, All rights reserved. Refer to the file README.txt for the license

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.add_outer_incrementer(incrementer) ⇒ Object



12
13
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb', line 12

def self.add_outer_incrementer(incrementer)
end

.cycle_adjust(date_time) ⇒ Object



27
28
29
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb', line 27

def self.cycle_adjust(date_time)
  date_time
end

.first_sub_occurrence(previous_occurrence, outer_cycle_range) ⇒ Object



23
24
25
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb', line 23

def self.first_sub_occurrence(previous_occurrence, outer_cycle_range)
  nil
end

.first_within_outer_cycle(previous_occurrence, outer_cycle_range) ⇒ Object



19
20
21
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb', line 19

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

.next_time(previous) ⇒ Object

:nodoc:



8
9
10
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb', line 8

def self.next_time(previous)
  nil
end

.to_sObject



31
32
33
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb', line 31

def self.to_s
  "NULL-INCR"
end

.unneeded?(candidate) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb', line 15

def self.unneeded?(candidate)
  true
end

Instance Method Details

#inspectObject



35
36
37
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb', line 35

def inspect
  to_s
end