From: Phillip Gawlowski Date: 2010-10-07T21:29:17+09:00 Subject: Re: Can anyone give a an example of this please On Thu, Oct 7, 2010 at 2:17 PM, Robert Klemme wrote: >> irb(main):001:0> [0,1,2,3].each { puts "no param" } >> no param >> no param >> no param >> no param >> => [0, 1, 2, 3] > > There is _one_ parameter passed - you just do not pick it up in the block. Ah, then I misunderstood the question, I guess, thinking that the OP wanted an example of a block without a parameter enclosed in ||, analogus to the |key,value| pair in the OP's example. Though, do you count the array index passed into the #each block as a parameter, or not? -- Phillip Gawlowski Though the folk I have met, (Ah, how soon!) they forget When I've moved on to some other place, There may be one or two, When I've played and passed through, Who'll remember my song or my face.