Well-behaved Ruby Objects: Equality
A “well-behaved” object in Ruby needs to understand: What makes two Ruby objects “equal”? And which version of “equal” (there are several in Ruby)? And what makes an object usable as a Hash key? And is that the same thing that makes them Comparable? https://stevenharman.net/well-behaved-ruby-object-equality
Post a comment