class Date
Public Instance Methods
nth_of_wday()
click to toggle source
# File lib/nth_day.rb, line 21 def nth_of_wday (self.mday.to_f / 7).ceil end
nth_wday?(n, w)
click to toggle source
# File lib/nth_day.rb, line 17 def nth_wday?(n, w) (self.wday == w) && (self.nth_of_wday == n) end