From: "Jesús Gabriel y Galán" Date: 2009-09-22T01:54:06+09:00 Subject: Re: Incrementing method names in a loop? On Mon, Sep 21, 2009 at 6:32 PM, Matt Brooks wrote: > Nevermind, I implemented jesus's incorrectly, it works! > > I needed the .to_sym from the created method name.... > >            framework.binary.pan_data_signals[index_pan_data_signal].num_bins.times > do |bin_number_index| >            pan_data_variable = > "pan_data_bin_#{bin_number_index}".to_sym >            value = > framework.binary.pan_data_signals[index_pan_data_signal].send(pan_data_variable) >            framework.write_log("Pan Data Bin_\##{bin_number_index}: > #{value}") >          end > > > Thank you a lot to both of you, I was at a lost, and now it works like a > charm!!! OK. I had already answered in another thread (it appeared as another thread in my email client) before noticing this. Strange though, because send works with strings too. See my examples in the other thread or this one: irb(main):074:0> "abcde".send("size") => 5 Jesus.