What is the difference between #== and #equal?? Technology Community › Category: Ruby › What is the difference between #== and #equal?? 0 Vote Up Vote Down VietMX Staff asked 4 years ago #== performs the generic comparison and is implemented differently across classes while #equal? is defined on BasicObject and compares object identity. Therefore, #equal? should not be overridden in subclasses.