From: Transparency Date: 2011-06-25T11:40:25+09:00 Subject: Re: Honoring #to_ary and such On Jun 24, 5:56 pm, Aaron Patterson wrote: > Be careful with strings.  Array() may not do what you want depending on > your target ruby: > >   irb(main):001:0> RUBY_VERSION >   => "1.9.2" >   irb(main):002:0> Array("hello\nworld").length >   => 1 >   irb(main):003:0> > >   >> RUBY_VERSION >   => "1.8.7" >   >> Array("hello\nworld").length >   => 2 >   >> > > Depending on your inputs, you may need to check for a String. F**k! And my code just looked so pretty there for a while :-/