Created
July 21, 2016 20:25
-
-
Save mustmodify/c08338ef3777d23ca9817fd216b2a576 to your computer and use it in GitHub Desktop.
fantasy OR / AND operator
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
>> answer = a || b || ( c && Time.now ) | |
=> true | |
>> answer.explain | |
=> nil || false || (true && 2016-07-21 16:25:45 -0400 ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment