From: matt@... (matt neuburg) Date: 2009-02-22T03:10:58+09:00 Subject: Re: ask ri for the other squeeze Roger Pack wrote: > > but I prefer fastri over ri, because....it's *faster* =D > > http://eigenclass.org/hiki/fastri > > Note also that you can lookup things in irb > > irb(main):002:0> help "String#chars" > ----------------------------------------------------------- String#chars > str.chars => anEnumerator > str.chars {|substr| block } => str > ------------------------------------------------------------------------ > Returns an enumerator that gives each character in the string. If a > block is given, it iterates over each character in the string. > > "foo".chars.to_a #=> ["f","o","o"] But what I asked about was String.squeeze. Same problem: irb(main):001:0> help "String#squeeze" More than one method matched your request. You can refine your search by asking for information on one of: String#squeeze!, String#squeeze, String#squeeze!, String#squeeze Now what? m. -- matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ Leopard - http://www.takecontrolbooks.com/leopard-customizing.html AppleScript - http://www.amazon.com/gp/product/0596102119 Read TidBITS! It's free and smart. http://www.tidbits.com