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

:nodoc:

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.add_outer_incrementer(incrementer) ⇒ Object



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

def self.add_outer_incrementer(incrementer)
end

.cycle_adjust(date_time) ⇒ Object



25
26
27
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb', line 25

def self.cycle_adjust(date_time)
  date_time
end

.first_sub_occurrence(previous_occurrence, outer_cycle_range) ⇒ Object



21
22
23
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb', line 21

def self.first_sub_occurrence(previous_occurrence, outer_cycle_range)
  nil
end

.first_within_outer_cycle(previous_occurrence, outer_cycle_range) ⇒ Object



17
18
19
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb', line 17

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

.next_time(previous) ⇒ Object



6
7
8
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb', line 6

def self.next_time(previous)
  nil
end

.to_sObject



29
30
31
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb', line 29

def self.to_s
  "NULL-INCR"
end

.unneeded?(candidate) ⇒ Boolean

Returns:

  • (Boolean)


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

def self.unneeded?(candidate)
  true
end

Instance Method Details

#inspectObject



33
34
35
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/null_sub_cycle_incrementer.rb', line 33

def inspect
  to_s
end