method

to_r

ruby latest stable - Class: BigDecimal
to_r()
public

Converts a BigDecimal to a Rational.