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

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

str.tr(from_str, to_str) => new_str Instance Public methods Returns a

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

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

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

str.swapcase! â str or nil Instance Public methods Equivalent to S

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

pathmap_replace(patterns, &block) Instance Public methods Preform the pathmap

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

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

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

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

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

String#tolocale => string Instance Public methods Convert self

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

str.to_r â rational Instance Public methods Returns a rational which denotes

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

str.shellsplit => array Instance Public methods Splits str

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

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

2025-01-10 15:47:30