From: Robert Klemme Date: 2010-02-12T21:05:26+09:00 Subject: Re: Some noob questions 2010/2/12 John Ydil : > Thanks again Robert but (there is always a BUT).... > > I copy paste the code you gave me >        File.to_enum(:foreach, "/etc/raddb/users").each_slice 4 do > |name, ip, dump, table| >        puts name.strip! >        puts ip.strip! >        puts table.strip! > end > > ./test.rb:31: undefined method `each_slice' for # 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/