Ruby 1.9.0 リファレンスマニュアル > ライブラリ一覧 > library rational > class Integer > numerator
numerator
In an integer, the value is the numerator of its rational equivalent. Therefore, this method returns self.