From: Jigar Gosar Date: 2008-02-14T19:09:02+09:00 Subject: How can I write this method in one line? def gen_indices_string num string = "" num.times{|i| string<<(i+1).to_s} return string end I have a feeling that stuff can be written in a single line using some of the ruby API. Can anyone help? thanks -- Posted via http://www.ruby-forum.com/.