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

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

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

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

str.each_codepoint {|integer| block } â strstr.each_codepoint â an_enumerator Instance

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
=~
  • References/Ruby on Rails/Ruby/Classes/String

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

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

str + other_str â new_str Instance Public methods ConcatenationâReturns a

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

str.reverse! â str Instance Public methods Reverses str in place

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
isjis
  • References/Ruby on Rails/Ruby/Classes/String

String#isjis => true or false Instance Public methods Returns whether

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
concat
  • References/Ruby on Rails/Ruby/Classes/String

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

2025-01-10 15:47:30