Ruby 4.0 リファレンスマニュアル

instance method Integer#numerator

numerator -> Integer[permalink][rdoc][edit]

分子(常に self)を返します。

[RETURN]
分子を返します。
p 10.numerator  # => 10
p -10.numerator # => -10

[SEE_ALSO] Integer#denominator