RubyFlow The Ruby and Rails community linklog

Ruby Equality And Object Comparison

Object comparison is extremely important, not only do we tend to often explicitly compare objects to each other but objects are frequently compared and tested for equality ‘behind the scenes’, by core and library classes (i.e. ordering of objects in collections etc.). When it comes to object equality Ruby is interesting in that it provides multiple methods to test for object equality each with a slightly different purpose. So, lets not waste any time and jump straight into Ruby Equality And Object Comparison.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in