Class: RiCal::PropertyValue::RecurrenceRule::OccurrenceIncrementer::ByYeardayIncrementer
- Inherits:
-
ByNumberedDayIncrementer
- Object
- RiCal::PropertyValue::RecurrenceRule::OccurrenceIncrementer
- ListIncrementer
- ByNumberedDayIncrementer
- RiCal::PropertyValue::RecurrenceRule::OccurrenceIncrementer::ByYeardayIncrementer
- Defined in:
- lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/by_yearday_incrementer.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from ListIncrementer
#cycle_start, #list, #occurrences, #outer_occurrence
Attributes inherited from RiCal::PropertyValue::RecurrenceRule::OccurrenceIncrementer
#contains_daily_incrementer, #contains_weeknum_incrementer, #current_occurrence, #leaf_iterator, #outer_incrementers, #outer_range, #sub_cycle_incrementer
Class Method Summary collapse
-
.for_rrule(rrule) ⇒ Object
:nodoc:.
Instance Method Summary collapse
- #advance_cycle(date_time) ⇒ Object
- #end_of_occurrence(date_time) ⇒ Object
- #scope_of(date_time) ⇒ Object
- #start_of_cycle(date_time) ⇒ Object
Methods inherited from ByNumberedDayIncrementer
#candidate_acceptable?, #daily_incrementer?, #occurrences_for, #unneeded?
Methods inherited from ListIncrementer
#candidate_acceptable?, conditional_incrementer, #cycle_adjust, #first_within_outer_cycle, #get_next_occurrences, #initialize, #next_candidate, #next_cycle, #next_in_list, #occurrences_for, #occurrences_within, #unneeded?
Methods inherited from RiCal::PropertyValue::RecurrenceRule::OccurrenceIncrementer
#add_outer_incrementer, #contains_daily_incrementer?, #contains_weeknum_incrementer?, #daily_incrementer?, #first_sub_occurrence, from_rrule, #in_outer_cycle?, #initialize, #next_cycle, #next_time, #outermost?, #short_name, #to_s, #update_cycle_range, #weeknum_incrementer?
Methods included from TimeManipulation
#advance_day, #advance_month, #advance_week, #advance_year, #first_day_of_month, #first_day_of_week, #first_day_of_year, #first_hour_of_day
Constructor Details
This class inherits a constructor from RiCal::PropertyValue::RecurrenceRule::OccurrenceIncrementer::ListIncrementer
Class Method Details
.for_rrule(rrule) ⇒ Object
:nodoc:
8 9 10 |
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/by_yearday_incrementer.rb', line 8 def self.for_rrule(rrule) conditional_incrementer(rrule, :byyearday, ByMonthdayIncrementer) end |
Instance Method Details
#advance_cycle(date_time) ⇒ Object
20 21 22 |
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/by_yearday_incrementer.rb', line 20 def advance_cycle(date_time) first_day_of_year(advance_year(date_time)) end |
#end_of_occurrence(date_time) ⇒ Object
24 25 26 |
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/by_yearday_incrementer.rb', line 24 def end_of_occurrence(date_time) date_time.end_of_day end |
#scope_of(date_time) ⇒ Object
16 17 18 |
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/by_yearday_incrementer.rb', line 16 def scope_of(date_time) date_time.year end |
#start_of_cycle(date_time) ⇒ Object
12 13 14 |
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/by_yearday_incrementer.rb', line 12 def start_of_cycle(date_time) date_time.change(:month => 1, :day => 1) end |