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#[]=.

chop

str.chop â new_str Instance Public methods Returns a new String

2015-05-15 14:52:04
include?

str.include? other_str â true or false Instance Public methods Returns true

2015-05-15 16:58:03
[]=

str[fixnum] = new_strstr[fixnum, fixnum] = new_strstr[range] = aStringstr[regexp] = new_strstr[regexp, fixnum] = new_strstr[regexp

2015-05-15 13:52:08
clear

string.clear â string Instance Public methods Makes string empty.

2015-05-15 15:04:40
scan

str.scan(pattern) â arraystr.scan(pattern) {|match, ...| block } â str Instance

2015-05-15 18:41:05
slice!

str.slice!(fixnum) â fixnum or nilstr.slice!(fixnum, fixnum) â new_str or nilstr.slice!(range) â new_str or nilstr.slice

2015-05-15 19:15:28
sub!

str.sub!(pattern, replacement) â str or nilstr.sub!(pattern) {|match| block } â str or nil Instance

2015-05-15 20:00:51
ext

ext(newext='') Instance Public methods Replace the file extension with newext

2015-05-15 11:37:18
downcase

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

2015-05-15 15:35:52
empty?

str.empty? â true or false Instance Public methods Returns true

2015-05-15 16:03:44