A Guide to Ruby Equality

equality in Ruby is not straightforward. There is #==, #eql?, #equal?, #===, and more. Even if you’re familiar with using them, implementing them can be a whole other story.