From: hipster Date: 2000-12-02T21:03:27+09:00 Subject: [ruby-talk:6741] Re: printing/accessing arrays and hashes On Sat, 02 Dec 2000 02:08:58 +0900, Aleksi Niemel� wrote: > Matz says: > > 'inspect' is for human readable representation. > > Probably we have to have either > > > > (a) `inspect' like method without length limit, which probably gives > > eval reproducing string. > > > > (b) removing length limit from String#inspect. > > I'd love to see inspecting to have some warp on it's evolution. Basically > these are the notes and ideas I currently have for it. Just an idea: introduce a Visitor pattern. The default implementation gives the current inspect behavior, and the user can override it for any specific representations. Michel