From: Eric Hodel Date: 2005-11-19T08:57:28+09:00 Subject: Re: Symbol#inspect bug? 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 --------------------------------------------------------- Object#inspect obj.inspect => string ------------------------------------------------------------------------ Returns a string containing a human-readable representation of _obj_. If not overridden, uses the +to_s+ method to generate the string. [ 1, 2, 3..4, 'five' ].inspect #=> "[1, 2, 3..4, \"five\"]" Time.new.inspect #=> "Wed Apr 09 08:54:39 CDT 2003" -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04