Thanks Matthew,

Pretty interesting, I'll definitely give it a try.
You do have one typo, in the minutes method it should be:
while m >= 60 instead of > 60 :-)

I'm still looking for more ways though, how I could fix this more
elegantly, but this is a good starting point. Thanks again!

Matthew Kerwin wrote in post #1075787:
> Sorry if my answer was a bit air-headed.  Here's a more tangible
> example:
>
>     class HoursMinutes
>       attr_accessor :hours
>       attr_reader :minutes

-- 
Posted via http://www.ruby-forum.com/.