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

to_str

str.to_str â str Instance Public methods Returns the receiver.

2015-05-15 20:37:00
crypt

str.crypt(salt_str) â new_str Instance Public methods Applies a one-way cryptographic

2015-05-15 15:24:34
ljust

str.ljust(integer, padstr=' ') â new_str Instance Public methods If integer

2015-05-15 17:24:22
slice

str.slice(index) â new_str or nilstr.slice(start, length) â new_str or nilstr.slice(range) â new_str or nilstr.slice(regexp)

2015-05-15 19:10:46
encode!

str.encode!(encoding [, options] ) â strstr.encode!(dst_encoding, src_encoding [, options] ) â str Instance

2015-05-15 16:09:51
rstrip!

str.rstrip! â self or nil Instance Public methods Removes trailing whitespace

2015-05-15 18:39:54
ascii_only?

str.ascii_only? â true or false Instance Public methods Returns true for a

2015-05-15 13:55:49
new

String.new(str="") â new_str Class Public methods Returns a new string object

2015-05-15 12:56:06
rjust

str.rjust(integer, padstr=' ') â new_str Instance Public methods If integer

2015-05-15 18:30:24
to_c

str.to_c â complex Instance Public methods Returns a complex which denotes

2015-05-15 12:16:14