Comparable module in Ruby