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

partition
  • References/Ruby on Rails/Ruby/Classes/String

str.partition(sep) â [head, sep, tail]str.partition(regexp) â [head, match, tail] Instance

2025-01-10 15:47:30
delete!
  • References/Ruby on Rails/Ruby/Classes/String

str.delete!([other_str]+) â str or nil Instance Public methods Performs a

2025-01-10 15:47:30
=~
  • References/Ruby on Rails/Ruby/Classes/String

str =~ obj â fixnum or nil Instance Public methods MatchâIf obj

2025-01-10 15:47:30
concat
  • References/Ruby on Rails/Ruby/Classes/String

str.concat(integer) â strstr.concat(obj) â str Instance Public methods

2025-01-10 15:47:30
succ
  • References/Ruby on Rails/Ruby/Classes/String

str.succ â new_str Instance Public methods Returns the successor to str

2025-01-10 15:47:30
squeeze
  • References/Ruby on Rails/Ruby/Classes/String

str.squeeze([other_str]*) â new_str Instance Public methods Builds a set

2025-01-10 15:47:30
/
  • References/Ruby on Rails/Ruby/Classes/String

/(p1 = v1, p2 = v2) Instance Public methods Alias for:

2025-01-10 15:47:30
byteslice
  • References/Ruby on Rails/Ruby/Classes/String

str.byteslice(fixnum) â new_str or nilstr.byteslice(fixnum, fixnum) â new_str or nilstr.byteslice(range) â new_str or nil

2025-01-10 15:47:30
crypt
  • References/Ruby on Rails/Ruby/Classes/String

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

2025-01-10 15:47:30
block_scanf
  • References/Ruby on Rails/Ruby/Classes/String

block_scanf(fstr) Instance Public methods Scans the current string until the

2025-01-10 15:47:30