Type:
Class

Rake extension methods for String.

A String object holds and manipulates an arbitrary sequence of bytes, typically representing characters. String objects may be created using String::new or as literals.

Because of aliasing issues, users of strings should be aware of the methods that modify the contents of a String object. Typically, methods with names ending in “!'' modify their receiver, while those without a “!'' return a new String. However, there are exceptions, such as String#[]=.

==

str == obj â true or false Instance Public methods EqualityâIf obj

2015-05-15 13:39:22
squeeze!

str.squeeze!([other_str]*) â str or nil Instance Public methods Squeezes

2015-05-15 19:34:51
upcase

str.upcase â new_str Instance Public methods Returns a copy of str

2015-05-15 21:04:30
ord

str.ord â integer Instance Public methods Return the Integer

2015-05-15 18:01:35
downcase!

str.downcase! â str or nil Instance Public methods Downcases the contents

2015-05-15 15:39:27
reverse

str.reverse â new_str Instance Public methods Returns a new string with the

2015-05-15 18:14:53
strip

str.strip â new_str Instance Public methods Returns a copy of str

2015-05-15 19:45:38
gsub

str.gsub(pattern, replacement) â new_strstr.gsub(pattern, hash) â new_strstr.gsub(pattern) {|match| block } â new_strstr

2015-05-15 16:40:55
index

str.index(substring [, offset]) â fixnum or nilstr.index(regexp [, offset]) â fixnum or nil Instance

2015-05-15 17:02:29
casecmp

str.casecmp(other_str) â -1, 0, +1 or nil Instance Public methods Case-insensitive

2015-05-15 14:24:48