Current Path : /usr/local/share/ri/1.8/system/String/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/share/ri/1.8/system/String/squeeze-i.yaml |
--- !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