Forum: Ruby Re: Detecting holidays

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
825738339f48c5b8b2a72c02caf3d91c?d=identicon&s=25 Gavin Kistner (Guest)
on 2007-01-03 01:24
(Received via mailing list)
From: Daniel Berger []
>    def national_holiday?
>       new_years? && memorial_day? && independence_day? &&
> thanksgiving?
> &&
>       christmas?
>    end

You stingy bastard! I only get a holiday when it happens that New
Year's, Memorial Day, Thanksgiving, AND Christmas all somehow fall on
the same day? ;)

I think you mean ||
This topic is locked and can not be replied to.