Created
November 18, 2008 19:46
-
-
Save tommorris/26235 to your computer and use it in GitHub Desktop.
a fun little Ruby time one-liner
This file contains hidden or 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
puts "it's a wednesday or a thursday between 10am and 11pm" if [3,4].member?(Time.now.wday) && (10..22).member?(Time.now.hour) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment