From: Eric Hodel Date: 2005-11-19T10:30:39+09:00 Subject: Re: Symbol#inspect bug? On Nov 18, 2005, at 4:09 PM, Dominik Bathon wrote: > On Sat, 19 Nov 2005 00:57:28 +0100, Eric Hodel > wrote: > >> On Nov 18, 2005, at 3:22 PM, Dominik Bathon wrote: >> >>> Symbol#inspect should return a valid symbol literal, right? >> >> Not according to the RDoc: >> >> $ ri Object#inspect >> Returns a string containing a human-readable representation of >> _obj_. If not overridden, uses the +to_s+ method to generate >> the >> string. > > Yes, but: > > $ ri Symbol#inspect > Returns the representation of sym as a symbol literal. I consider Object#inspect to set the intent of all the #inspect methods, but this may be an oversight. -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04