Hi --

On Sat, 7 Feb 2009, Siep Korteling wrote:

> David A. Black wrote:
>> Hi --
>
>> (squeeze defaults to " " as its argument, so you don't have to provide
>> an argument unless it's something different.)
>>
>>
>> David
>
> Is that a 1.9.1 change? In 1.8.6 String#squeeze squeezes everything if
> no arguments are given.
>
> "abc aabbcc  ".squeeze
> #=>"abc abc "

Sorry, my mistake. It does squeeze everything.


David

-- 
David A. Black / Ruby Power and Light, LLC
Ruby/Rails consulting & training: http://www.rubypal.com
Coming in 2009: The Well-Grounded Rubyist (http://manning.com/black2)

http://www.wishsight.com => Independent, social wishlist management!