superclass=Numeric
type=class
library=_builtin
extended=
included=

ͭ򰷤饹Ǥ

1/3פΤ褦ͭ򰷤Ǥޤ[[c:Integer]]  [[c:Float]]
Ʊͤ Rational.new ǤϤʤ [[m:Kernel.#Rational]] Ѥ
[[c:Rational]] ֥Ȥޤ

:

  Rational(1, 3)       # => (1/3)
  Rational('1/3')      # => (1/3)
  Rational('0.33')     # => (33/100)
  Rational.new(1, 3)   # => NoMethodError
