From: Gregory Brown Date: 2007-06-30T23:01:39+09:00 Subject: Re: is it bug? for On 6/30/07, Axel Etzold wrote: > > -------- Original-Nachricht -------- > Datum: Sat, 30 Jun 2007 22:54:34 +0900 > Von: Bertram Scharpf > An: ruby-talk@ruby-lang.org > Betreff: Re: is it bug? for > > > Hi, > > > > Am Samstag, 30. Jun 2007, 22:17:24 +0900 schrieb Axel Etzold: > > > You can change that by writing it: > > > > > > class String > > > def to_a > > > return [self] > > > end > > > end > > > > Rubbish. It's > > So what's the difference between your output and mine, > except for the degree of etiquette ? Well, yours isn't correct. On 1.8: >> "a\nb\nc\n".to_a => ["a\n", "b\n", "c\n"] The code you mentioned is just: ["a\nb\nc\n"]