From: Eero Saynatkari Date: 2009-04-08T14:14:50+09:00 Subject: [ruby-core:23151] Re: 1.8.8 warning with Array("string") 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]. -- Magic is insufficiently advanced technology.