Skip to content

Instantly share code, notes, and snippets.

@veezus
Created October 4, 2011 20:27
Show Gist options
  • Save veezus/1262697 to your computer and use it in GitHub Desktop.
Save veezus/1262697 to your computer and use it in GitHub Desktop.
Boolean negation
def is_it_true?
# calculate the result
not result
end
def is_it_true?
# calculate the result
!result
end
@shorepound
Copy link

I prefer ! because, well, it just sounds more fun.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment