Created
June 6, 2011 20:20
-
-
Save trekdemo/1011010 to your computer and use it in GitHub Desktop.
Yes or no
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
does = is = { true => 'Yes', false => 'No' } | |
# Use it | |
does[10 == 50] # => "No" | |
is[10 > 5] # => "Yes" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment