Skip to content

Instantly share code, notes, and snippets.

@jonleung
Created July 19, 2012 23:02
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 jonleung/160e1db7b3724c71b541 to your computer and use it in GitHub Desktop.
Save jonleung/160e1db7b3724c71b541 to your computer and use it in GitHub Desktop.
Evaluating to false
class A
def ==(comp)
false
end
end
a = A.new
if a
puts "'a' evaluated to true"
else
puts "'a' evaluated to false"
end
#=> 'a' evaluated to true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment