From: Farrel Lifson Date: 2006-03-23T01:24:58+09:00 Subject: Re: why doesn't "to_s" DWIM? You might want to look at Array#map arr.map do |item| item.to_s end On 3/22/06, Chris McMahon wrote: > > How come to_s doesn't work here? > > #################################### > require 'test/unit' > class TOY_CASE > def test_toy_test > > aoa = [[1,2,3],[4,5,6]] > > aoa.each do |arr| > arr.each do |item| > item = item.to_s > end > assert_equal(["1","2","3"],arr) > end > > > end #def > end #class > ########################################## > > >