# File lib/holidays.rb, line 288 def self.to_weekday_if_weekend(date) date += 1 if date.wday == 0 date -= 1 if date.wday == 6 date end