Skip to content

Instantly share code, notes, and snippets.

@havenwood
Last active September 19, 2018 02:06
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 havenwood/549e4bc6d67aeccb64bdd77b07be09fc to your computer and use it in GitHub Desktop.
Save havenwood/549e4bc6d67aeccb64bdd77b07be09fc to your computer and use it in GitHub Desktop.
class Foo
def == _
true
end
end
class Bar
def == _
false
end
end
foo = Foo.new
bar = Bar.new
foo == foo
#=> true
bar == bar
#=> false
foo != foo
#=> false
bar != bar
#=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment