From: Robert Klemme Date: 2004-08-12T20:21:27+09:00 Subject: Re: how to think in Ruby way "H.J.LeoChen" schrieb im Newsbeitrag news:cffhr1$58e$1@news.yaako.com... > I'm new with developping with Ruby, When i deal with a problem ,always > manage it in C and then translate into Ruby.i always feel bad about it. now > i've got a task ,could you tell me how could manage it in Ruby way. > the task as followes: IMHO there's not much to thinking this the Ruby Way(TM): - parse values while reading the file into an appropriate data structure (Hash of Hashes comes to mind) - iterate all configs and construct result strings - process strings (output or whatever). Regards robert