# Re: Detecting holidays

**URL:** <https://www.ruby-forum.com/t/re-detecting-holidays/81012>\
**Category:** Ruby\
**Created:** [January 3, 2007, 1:24am UTC](https://www.ruby-forum.com/t/re-detecting-holidays/81012 "2007-01-03T01:24:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phrogz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/2acd7d/32.png) [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Post date:** [January 3, 2007, 1:24am UTC](https://www.ruby-forum.com/t/re-detecting-holidays/81012/1 "2007-01-03T01:24:41Z")

</div>

From: Daniel B. [[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]

> 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 ||
