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