From: James Gray Date: 2009-04-08T23:39:20+09:00 Subject: [ruby-core:23163] Re: 1.8.8 warning with Array("string") On Apr 8, 2009, at 12:14 AM, Eero Saynatkari wrote: > Excerpts from drbrain's message of Wed Apr 08 07:10:36 +0300 2009: >> >> $ ruby18 -ve 'p Array("multi-line\nstring")' >> ruby 1.8.8dev (2009-04-06 revision 23143) [i386-darwin9.6.0] >> -e:1: warning: treating String as Enumerable object is deprecated; >> use >> String#each_line/lines >> ["multi-line\n", "string"] >> >> >> >> PS: I really wouldn't mind if this last instance returned ["multi- >> line >> \nstring"] > > Yes, it should follow to_ary? -> to_a? -> [obj]. I agree. James Edward Gray II