2011/6/5 Ilias Lazaridis <ilias / lazaridis.com>
>
> On 4 =C9=EF=FD=ED, 21:02, Robert Klemme <shortcut... / googlemail.com> wrot=
e:
> [...]
> > There is another approach which does not suffer from the side effect of
> [...]
>
> Note to readers:
>
> This approach is not usable in the given context (Altering Behaviours
> of "each do").
>
> The code can *possibly* altered, thus it works on Array#each.
>
> For a solution which works exactly in the given context (Array#each),
> see message from "James Gray" below (you can ignore all following
> messages, they are off-topic).

If you look close enough you will notice that *both* approaches work
(or don't) the same way with regard to #each - for the same reason!

robert

--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/