Rational literal for mixed fractions
Current behavior of rational literal and
String#to_r does not recognize mixed fractions. Mixed fraction is not rare, and is frequently used in places such as US length measurement.
I propose that rational literal and
String#to_r should be extended to handle mixed fractions. Perhaps something like:
8 1/2r #=> (17/2) "8 1/2".to_r #=> (17/2)
(8 1/2)r #=> (17/2)
No data to display