Skip to content

Instantly share code, notes, and snippets.

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 mustmodify/c08338ef3777d23ca9817fd216b2a576 to your computer and use it in GitHub Desktop.
Save mustmodify/c08338ef3777d23ca9817fd216b2a576 to your computer and use it in GitHub Desktop.
fantasy OR / AND operator
>> 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