From: Dave Burt Date: 2005-05-12T22:24:40+09:00 Subject: Re: Standard Library patches - rational, delegate "Luke Galea" commented: >I know I definately needed those rational methods for a meal planner I'm > working on.. > > One more thing that might be useful for rational.rb: a to_s method for > Rational that produces results for 3/2 as '1 1/2'.. Not sure what that would > best be called but I think it's a good change to bundle in there.. Taking Brian's idea one step further: def to_mixed_fraction self.divmod(1).join(' ') end