Well-behaved Ruby Objects: Equality
A “well-behaved” object in Ruby needs to understand What makes two Ruby objects “equal”? Which version of “equal” (there are several in Ruby)? 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