method

to_s

v1_8_7_330 - Show latest stable - Class: Rational
to_s()
public

Returns a string representation of the rational number.

Example:

Rational(3,4).to_s          #  "3/4"
Rational(8).to_s            #  "8"