lib/ri_cal/calendar_occurrences.rb
# Return occurrences for all recurrable subcomponents of a calendar
Return occurrences for all recurrable subcomponents of a calendar
Return occurrences for all recurrable subcomponents of a calendar
def add_instances(memo, instances, options)
      found = 0
      instances.each do |override|
        break if found >= options[:count] if options[:count]
        if instance = override.occurrences(options).first
          memo << instance
          found += 1
        end
      end
    end
def add_instances ( memo , instances , options ) found = 0 instances . each do | override | break if found >= options [ :count ] if options [ :count ] if instance = override . occurrences ( options ) . first memo << instance found += 1 end end end
Return occurrences for all recurrable subcomponents of a calendar
Return occurrences for all recurrable subcomponents of a calendar
memo
instances
options