From: Trans Date: 2007-11-05T11:49:27+09:00 Subject: Re: This is how we Roll On Nov 4, 9:19 pm, Konrad Meyer wrote: > Quoth Trans: > > > > > > > On Nov 4, 6:33 pm, Konrad Meyer wrote: > > > Quoth Joel VanderWerf: > > > > > Trans wrote: > > > > > > irb(main):001:0> Library.list > > > > > => ["box", "nitro", "roll", "icli", "mint", "og", "glue", > > > > > "tmail", "english", "webrite", "blow", "xact", "raw", > > > > > "ruby", "ratch", "facets"] > > > > > Any reason this returns a list of strings, and not of library objects? > > > > > -- > > > > vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407 > > > > Maybe Library#inspect just returns a string of the name? :D > > > Nah. list is a class method. inspect is an instance method. > > > irb(main):002:0> library('facets').inspect > > => "#" > > > T. > > Yes, I'm aware of that. I was saying maybe Library.list (class method) which > seems to return an array of strings in irb is actually returning an array of > Library instances, which each get rendered to a string by their respective > #inspect instance methods. Oh, right. I see what you were saying. Not the case though. It's late. I need to sleep. T.