On 9/14/05, Gavin Kistner <gavin / refinery.com> wrote:
> Following feels like a good replacement for the existing Nano
> String#word_wrap method. Using gsub! (seen below) instead of
> scan.flatten.join (seen above) was a bit (but not much) faster. The
> non-destructive method can be re-written to be a hair faster by not
> relying on the destructive one, but it doesn't feel worth the DRY
> violation to do so.

... I've been observing this discussion, and I'm wondering why people
wouldn't just use Text::Format, instead. It does all of this and
allows for hyphenation, too.

-austin
-- 
Austin Ziegler * halostatue / gmail.com
               * Alternate: austin / halostatue.ca