From: Sun Date: 2008-01-21T23:55:00+09:00 Subject: Re: what does 'def [](var1)' means and how to use? > > Out of curiosity... operator overloading and it's ilk are (by many) > considered to be bad things because it can make it hard to figure out > what's happening in the code, especially for dynamic languages where > they can change on the fly. The reason for this thought is, I believe, > because it can be difficult to understand what code is doing if the > definitions of "standard" operations are or where they come from. > > Along those lines, is there a current way to ask Ruby where the > definition comes from for a given operator or, more generally, method? > Ie, Ruby needs to do a lookup to find out what definition to use. Is > there a way to ask it to do that lookup and report the results? > > Thanks, > Rob Seeger Have no idea of your question. I am just working with Ruby on rails temorarily (few weeks), on a project developed by another guy who is a big Ruby fan. I just figured out that Ruby maybe too flexible for me, as Perl, and I will go back to java/python/c++ genre soon after this work done. But ROR is truely amazing when dealing with Web apps, quite a fun of using it.