From: Gavin Sinclair Date: 2004-02-15T19:08:43+09:00 Subject: Re: method to WRAP text at _ # of characters? On Sunday, February 15, 2004, 6:11:36 PM, Ruby wrote: > Made myself a li'l Ruby class for sending email. > But of course I'd like to wrap the outgoing body of text at > 68 characters or so, before sending. > Having taken PHP's "wordwrap" function for granted, > (), I was surprised not to find > a similar method built-in to Ruby. > Or is it? > Did I miss it? > Am I going to have to write my own? There's a wrap implementation in 'rough' (a CVS repository of candiates for the Ruby standard library), as well as a few other text manipulation things. I'd like to see them all become standard, although better organised than they are now. Gavin