module Holidays
def next_holidays(holidays_count, options, from_date = Date.today)
major version bump we should take the opportunity to change this
FIXME All other methods start with a date and require a date. For the next
def next_holidays(holidays_count, options, from_date = Date.today) raise ArgumentError unless holidays_count raise ArgumentError if options.empty? raise ArgumentError unless options.is_a?(Array) # remove the timezone from_date = from_date.new_offset(0) + from_date.offset if from_date.respond_to?(:new_offset) from_date = get_date(from_date) Factory::Finder.next_holiday.call(holidays_count, from_date, options) end