Ruby で楽に範囲のチェックをする - Qiita

範囲のチェックをする時に、hoge >= min and hoge <= maxと書くのはめんどくさい。Comparable module をインクルードしているクラスでは between? …