From: nobuyoshi nakada Date: 2005-12-19T13:10:28+09:00 Subject: Re: String#dump and quotes Hi, At Sat, 17 Dec 2005 15:42:18 +0900, Hal Fulton wrote in [ruby-talk:171286]: > > Just out of curiosity, why are double quotes added to the start and end > > of the string when doing String#dump? I can see where it's happening > > in string.c, but I don't understand the purpose. > > I think it's just for looks, to emphasize that it's a string. > Like String#inspect. #dump ignores $KCODE, whereas #inspect is affected by it. -- Nobu Nakada