mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
1cf225dfbe
Added complete call-seq documentation for all Rational methods in mrblib/rational.rb (4 methods): ## Rational Class Methods: - inspect: returns string representation for debugging with parentheses format, showing the rational value in "(numerator/denominator)" form - to_s: returns string representation in "numerator/denominator" format for display and conversion purposes - <=>: spaceship operator for comparison with other numeric types, returns -1/0/+1 for less/equal/greater comparisons, enables Comparable module functionality with proper nil handling for incomparable values ## Numeric Extension Methods: - to_r: converts any numeric value to rational representation with denominator of 1, part of the standard numeric conversion protocol Co-authored-by: Atlassian Rovo Dev