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

str.upcase! â str or nil Instance Public methods Upcases the contents of

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

str.to_f â float Instance Public methods Returns the result of interpreting

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

str.replace(other_str) â str Instance Public methods Replaces the contents

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

str.shellsplit => array Instance Public methods Splits str

2025-01-10 15:47:30