From: Bob Gustafson Date: 2007-08-19T00:28:33+09:00 Subject: Re: How do you print the first 5 records in an array? On Aug 18, 2007, at 09:38, Phlip wrote: > Dirk Bruijn wrote: > >> 0.upto(4) { |x| puts @people[x]} > > 5.times{ puts @people.shift } > > Hey - they didn't say non-destructively! > > -- > Phlip > http://www.oreilly.com/catalog/9780596510657/ > "Test Driven Ajax (on Rails)" > assert_xpath, assert_javascript, & assert_ajax puts @people[0..4].join("\n")