Sha256: 0e733bdb646dfe060b31125089048415cf72b86f2865e8f2d7a5854534b0a55c

Contents?: true

Size: 184 Bytes

Versions: 2

Compression:

Stored size: 184 Bytes

Contents

module Scheduling
class CompoundSchedule < Struct.new(:schedules)
  def occurances date_range
    schedules.map {|sched| sched.occurances(date_range) }.flatten.uniq.sort
  end
end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
scheduling-0.1.2 lib/scheduling/schedule/compound_schedule.rb
scheduling-0.1.1 lib/scheduling/schedule/compound_schedule.rb