Ruby 1.9.0 リファレンスマニュアル > ライブラリ一覧 > library rational > class Integer > to_r
to_r
対応する有理数 (Rational) を返す。 Rational(self, 1) と同じ。