Skip to content

Instantly share code, notes, and snippets.

@Jeweller-Tsai
Created August 6, 2016 03:54
Show Gist options
  • Save Jeweller-Tsai/7bca78cc778702656912a4b16ce7c300 to your computer and use it in GitHub Desktop.
Save Jeweller-Tsai/7bca78cc778702656912a4b16ce7c300 to your computer and use it in GitHub Desktop.
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