Comparable (Ruby)

Comparable is a Ruby mixin that gives a class the comparison operators <, <=, ==, >, >=, plus between? and clamp — all derived from a single <=> method you…