class ConcreteHolidays::Thanksgiving

Public Class Methods

date(year) click to toggle source
# File lib/concrete_holidays/thanksgiving.rb, line 4
def self.date(year) # the fourth Thursday in November
  date = this_or_next(:thu, Date.new(year,11,1))
  3.times do
    date = the_next(:thu, date)
  end
  date
end