From: Ronald Fischer Date: 2007-08-07T19:51:55+09:00 Subject: Re: Feature request (pretty_inspect variant, yielding single quotes instead of double) > > You got me wrong here: I wanted to say that I don't see how globals > > would help me here. > > The global would be the flag which quoting style to use. Advantage is > that you do not need to pass it around (i.e. if YourClass#inspect has > some String members whose #inspect output it includes in its own > output). Ah, I see. No, this would definitely be a terrible hack which we should avoid! After all this feedback, I think the best solution would be to start with one of my originally proposed solutions (either a new function, or having pretty_inspect accepting a parameter), and either throwing an exception or returning nil if the conversion can't be done. Ronald -- Ronald Fischer Phone: +49-89-452133-162