class RiCal::Component::Timezone::TimezonePeriod

A TimezonePeriod is a component of a timezone representing a period during which a particular offset from UTC is
in effect.

to see the property accessing methods for this class see the RiCal::Properties::TimezonePeriod module

Public Instance Methods

enumeration_instance() click to toggle source
Calls superclass method
# File lib/ri_cal/component/timezone/timezone_period.rb, line 69
 def enumeration_instance
  @enumeration_instance ||= super
end
fill_cache(local_time) click to toggle source
# File lib/ri_cal/component/timezone/timezone_period.rb, line 43
def fill_cache(local_time)
  if occurrence_cache.empty? || occurrence_cache.last.dtstart_property <= local_time
    while true
      occurrence = enumeration_instance.next_occurrence
      break unless occurrence
      occurrence = recurrence(occurrence)
      occurrence_cache << occurrence
      break if occurrence.dtstart_property > local_time
    end
  end
end