From: Yossef Mendelssohn Date: 2012-03-07T02:50:05+09:00 Subject: Re: Getting the class of an object. On Mar 6, 12:35 pm, Ralph Shnelvar wrote: > > Let's say I am examining the source code and I see "foo".  I don't know what it is.  Is it a method?  Is it a local variable?  Is it a proc passed in as something on the parameter list?  Is it a binding? > > > > How can I find out what foo is without actually executing foo? If you're examining the source code by looking at it? I'd hope it should be fairly obvious. If you're doing something programmatically? Well, let me ask you something in return: what are you planning to do with `foo`? What are you planning to do with it if it's a local variable? What if it's a method? -- -yossef