Class: RiCal::PropertyValue::RecurrenceRule::BySecondIncrementer
- Inherits:
-
ListIncrementer
- Object
- OccurrenceIncrementer
- ListIncrementer
- RiCal::PropertyValue::RecurrenceRule::BySecondIncrementer
- Defined in:
- lib/ri_cal/property_value/recurrence_rule/occurence_incrementer.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from ListIncrementer
#cycle_start, #list, #occurrences, #outer_occurrence
Attributes inherited from OccurrenceIncrementer
#contains_daily_incrementer, #contains_weeknum_incrementer, #current_occurrence, #leaf_iterator, #outer_incrementers, #outer_range, #sub_cycle_incrementer
Class Method Summary collapse
Instance Method Summary collapse
- #advance_cycle(date_time) ⇒ Object
- #end_of_occurrence(date_time) ⇒ Object
- #start_of_cycle(date_time) ⇒ Object
- #varying_time_attribute ⇒ Object
Methods inherited from ListIncrementer
conditional_incrementer, #cycle_adjust, #first_within_outer_cycle, #get_next_occurrences, #initialize, #next_candidate, #next_cycle, #next_in_list, #occurrences_for, #occurrences_within
Methods inherited from OccurrenceIncrementer
#add_outer_incrementer, #contains_daily_incrementer?, #contains_weeknum_incrementer?, #daily_incrementer?, #first_sub_occurrence, #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::ListIncrementer
Class Method Details
.for_rrule(rrule) ⇒ Object
339 340 341 |
# File 'lib/ri_cal/property_value/recurrence_rule/occurence_incrementer.rb', line 339 def self.for_rrule(rrule) conditional_incrementer(rrule, :bysecond, SecondlyIncrementer) end |
Instance Method Details
#advance_cycle(date_time) ⇒ Object
351 352 353 |
# File 'lib/ri_cal/property_value/recurrence_rule/occurence_incrementer.rb', line 351 def advance_cycle(date_time) date_time.advance(:minutes => 1).start_of_minute end |
#end_of_occurrence(date_time) ⇒ Object
355 356 357 |
# File 'lib/ri_cal/property_value/recurrence_rule/occurence_incrementer.rb', line 355 def end_of_occurrence(date_time) date_time end |
#start_of_cycle(date_time) ⇒ Object
347 348 349 |
# File 'lib/ri_cal/property_value/recurrence_rule/occurence_incrementer.rb', line 347 def start_of_cycle(date_time) date_time.start_of_minute end |
#varying_time_attribute ⇒ Object
343 344 345 |
# File 'lib/ri_cal/property_value/recurrence_rule/occurence_incrementer.rb', line 343 def :sec end |