lib/koyomi/month.rb
def nth_wday(nth, wday_name)
    case "#{nth}"
    when /first/
      calc_nth_wday(1, wday_name)
    when /last/
      self.next.nth_wday(1, wday_name) - Koyomi::Week::DAYS
    else
      calc_nth_wday(nth, wday_name)
    end
  end
# week day of nth week.
#
# @param  [Integer] nth
# @param  [Object]  wday_name
# @return [Date]
week day of nth week.
week day of nth week .
def nth_wday(nth, wday_name)
    case "#{nth}"
    when /first/
      calc_nth_wday(1, wday_name)
    when /last/
      self.next.nth_wday(1, wday_name) - Koyomi::Week::DAYS
    else
      calc_nth_wday(nth, wday_name)
    end
  end
def nth_wday ( nth , wday_name ) case "#{nth}" when / first / calc_nth_wday ( 1 , wday_name ) when / last / self . next . nth_wday ( 1 , wday_name ) - Koyomi :: Week :: DAYS else calc_nth_wday ( nth , wday_name ) end end
week day of nth week.
week day of nth week .
None
Date
nth
wday_name
None