What is the difference between #== and #eql?? Technology Community › Category: Ruby › What is the difference between #== and #eql?? 0 Vote Up Vote Down VietMX Staff asked 4 years ago #eql? is sometimes an alternate equality. Hash uses #eql? to test for hash key equality. Numeric types perform type conversion across #== but not across #eql?, thus #eql? performs a stricter comparison than #== in that case.