From: Robert Klemme Date: 2011-08-02T16:30:49+09:00 Subject: Re: how to make 1+a work if a is not a numeric object? Zd Yu wrote in post #1014372: > Peter Zotov wrote in post #1014366: >> Numeric#coerce is your friend: >> http://ruby-doc.org/core/classes/Numeric.html#M000959 > > Thank you Peter! coerce is the right solution! You can find more info on this here: http://blog.rubybestpractices.com/posts/rklemme/019-Complete_Numeric_Class.html Kind regards robert -- Posted via http://www.ruby-forum.com/.