Skip to content

Instantly share code, notes, and snippets.

@asaaki
Created July 10, 2014 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asaaki/b89e0b848f5a84e1e0fb to your computer and use it in GitHub Desktop.
Save asaaki/b89e0b848f5a84e1e0fb to your computer and use it in GitHub Desktop.
Stuff
sunday = (Date.today .. (Date.today + 7)).detect { |date| date.cwday == 7 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment