From: Toby Rodwell Date: 2006-09-25T01:50:31+09:00 Subject: Re: Use of array shift and blocks unknown wrote: > ... > shift doesn't take a block. You can write one but shift won't call > it. > > You could do this: > > until array.empty? > puts array.shift > end > > > David Many thanks David. I'm not sure I understand why shift doesn't take a block, but thanks for confirming it. regards Toby -- Posted via http://www.ruby-forum.com/.