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

instance method Integer#denominator

denominator [added by rational]

In an integer, the denominator is 1. Therefore, this method returns 1.