From: Evgeniy Dolzhenko Date: 2010-05-02T01:31:33+09:00 Subject: Re: DrX, an object inspector This little gem does what you want (with some magic from some very thin native extension) http://github.com/oggy/looksee Mooffie n/a wrote: > How, for example, can you find an object's class using pure Ruby? > > The problem with Ruby's #class is that it skips singletons. Example: > > s = "blah" > def s.whatever; 666; end > p s.class > > The above will print "String", but it's an error: the class should be > some singleton. -- Posted via http://www.ruby-forum.com/.