From: Phillip Gawlowski Date: 2011-08-26T22:06:06+09:00 Subject: Re: overloading methods question please? On Fri, Aug 26, 2011 at 3:02 PM, Hans Mackowiak wrote: > Alexey Muranov wrote in post #1018634: >> P.S. Inside the method you can do >> >>   case a.class >>   when Array >>     ... >>   when Hash >>     ... >>   else >>     ... >>   end > > you are wrong You are both wrong. > it must be ... never done. That's the right way dealing with operator overloading. ;) -- Phillip Gawlowski phgaw.posterous.com | twitter.com/phgaw | gplus.to/phgaw A method of solution is perfect if we can forsee from the start, and even prove, that following that method we shall attain our aim.               -- Leibniz