2010/2/12 John Ydil <john.gendrot / cnsi.fr>:

> Thanks again Robert but (there is always a BUT)....
>
> I copy paste the code you gave me

>  袯󢩮 
> |name, ip, dump, table|
>  >  >  
> end
>
> ./test.rb:31: undefined method `each_slice' for #<struct Enum inst=File,
> args=[:foreach, "/etc/raddb/users"]> (NoMethodError)
>
>
> I think we progress....

Slowly....  I believe #each_slice was added later as well.  Oh well.
Can't you just upgrade your Ruby version?  That seems a much better
option than trying to retrofit all the new behavior on the old
version.

Kind regards

robert


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