From: Trans Date: 2005-08-08T20:46:08+09:00 Subject: Re: String#to_ary and Test::Unit David A. Black wrote: > This message is in MIME format. The first part should be readable text, > while the remaining parts are likely unreadable without MIME-aware tools. > > Hi -- > > On Mon, 8 Aug 2005, [ISO-8859-1] Brian Schr�der wrote: > > > Another sidenote that removes the need for to_ary completely and is a > > lot faster: > > It's not needed if it's OK just to call #each, but I thought the > #to_ary call was part of Tom's original requirement. Unfortunately David is correct. In looking more closely at your (Brian's) code offering, I see that it still uses #each. So in the context of String, the same problem arsies --I can't count on a string being iterated over by chars. I'll have to create an overriding #freq method specifically for string --and the other methods that work the same way. T.