Ruby - Modules and Mixins
What does the Comparable module require you to define in your class to work properly?
What does the Comparable module require you to define in your class to work properly?
Comparable module needs the <=> method to compare objects.<=> method is required; other methods like == are derived from it.<=> method -> Option A<=> = D [OK]<=> to use Comparable module effectively [OK]== instead of <=>compare15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions