Ruby 1.9.0 リファレンスマニュアル > ライブラリ一覧 > library rational > class Integer > numerator

instance method Integer#numerator

numerator [added by rational]

In an integer, the value is the numerator of its rational equivalent. Therefore, this method returns self.