From: "David A. Black" Date: 2008-09-07T04:51:00+09:00 Subject: Re: any way to write it in one line ? Hi -- On Sun, 7 Sep 2008, William James wrote: > On Sep 6, 1:17 pm, Erwin wrote: >> works = Array.new > > works = [] > > Instead of > > name = String.new > > one says > > name = "" I tend to use the literal constructors, but either technique is OK. I believe some people like to use Array.new consistently since sometimes they actually need it (with arguments). David -- Rails training from David A. Black and Ruby Power and Light: Intro to Ruby on Rails January 12-15 Fort Lauderdale, FL Advancing with Rails January 19-22 Fort Lauderdale, FL * * Co-taught with Patrick Ewing! See http://www.rubypal.com for details and updates!