From: David Alan Black Date: 2004-05-08T21:54:04+09:00 Subject: Re: How to get the last 5 elements of an array? David Alan Black writes: > But none of this matters, because Array#last takes an argument :-) > > irb(main):008:0> [1,2,3].last(2) > => [2, 3] Whoops, I forgot the example that corresponds to what you want to do: irb(main):003:0> [1,2,3].last(5) => [1, 2, 3] David -- David A. Black dblack@wobblini.net