Created
August 6, 2016 03:54
-
-
Save Jeweller-Tsai/7bca78cc778702656912a4b16ce7c300 to your computer and use it in GitHub Desktop.
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
d1 = Date.new 2016, 7, 1 | |
d2 = Date.new 2016, 7, 31 | |
(d1 .. d2).each { |d| puts d unless d.sunday? or d.saturday? } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment