lib/koyomi/month.rb
def cycles(weeks, wdays)
    _dates = []
    cycle_weeks_filter(weeks).each do |n|
      [wdays].flatten.each do |w|
        begin
          a_date = self.nth_wday!(n, w)
        rescue Koyomi::WrongRangeError => e
          next
        else
          _dates << a_date
        end
      end
    end
    _dates.sort
  end
# week days of nth weeks.
#
# @param  [Integer|Array<Integer>] nth
# @param  [Object|Array<Object>]  wday_name
# @return [Array<Date>]
week days of nth weeks.
week days of nth weeks .
def cycles(weeks, wdays)
    _dates = []
    cycle_weeks_filter(weeks).each do |n|
      [wdays].flatten.each do |w|
        begin
          a_date = self.nth_wday!(n, w)
        rescue Koyomi::WrongRangeError => e
          next
        else
          _dates << a_date
        end
      end
    end
    _dates.sort
  end
def cycles ( weeks , wdays ) _dates = [ ] cycle_weeks_filter ( weeks ) . each do | n | [ wdays ] . flatten . each do | w | begin a_date = self . nth_wday! ( n , w ) rescue Koyomi :: WrongRangeError => e next else _dates << a_date end end end _dates . sort end
week days of nth weeks.
week days of nth weeks .
None
Array<Date>
weeks
wdays
None