Created
October 4, 2011 20:27
-
-
Save veezus/1262697 to your computer and use it in GitHub Desktop.
Boolean negation
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
def is_it_true? | |
# calculate the result | |
not result | |
end | |
def is_it_true? | |
# calculate the result | |
!result | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I prefer ! because, well, it just sounds more fun.