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

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

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

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

str.rindex(substring [, fixnum]) â fixnum or nilstr.rindex(regexp [, fixnum]) â fixnum or nil Instance

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

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

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

str.succ! â str Instance Public methods Equivalent to String#succ

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

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

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

str.inspect â string Instance Public methods Returns a printable version

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

String#toutf16 => string Instance Public methods Convert self

2025-01-10 15:47:30