Created
January 6, 2012 08:59
-
-
Save wtnabe/1569788 to your computer and use it in GitHub Desktop.
this month's weekday array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(Date.parse('2012-01-01')..Date.parse('2012-01-31')).to_a.find_all { |d| | |
not d.sunday? and not d.saturday? | |
}.map { |d| | |
d.day | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment