D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
String
/
Filename :
squeeze-i.yaml
back
Copy
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Builds a set of characters from the <em>other_str</em> parameter(s) using the procedure described for <tt>String#count</tt>. Returns a new string where runs of the same character that occur in this set are replaced by a single character. If no arguments are given, all runs of identical characters are replaced by a single character. - !ruby/struct:SM::Flow::VERB body: " "yellow moon".squeeze #=> "yelow mon"\n " now is the".squeeze(" ") #=> " now is the"\n "putters shoot balls".squeeze("m-z") #=> "puters shot balls"\n" full_name: String#squeeze is_singleton: false name: squeeze params: | str.squeeze([other_str]*) => new_str visibility: public