class Date

Public Instance Methods

shopping_black_friday?() click to toggle source
# File lib/a_special_day.rb, line 5
def shopping_black_friday?
  self.prev_day.united_states_thanksgiving?
end
united_states_thanksgiving?() click to toggle source
# File lib/a_special_day.rb, line 9
def united_states_thanksgiving?
  self.month == 11 and self.thursday? and self.day >= 22
end