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
···
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,
(http://us2.php.net/wordwrap), 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?