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

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

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

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

string.chr â string Instance Public methods Returns a one-character string

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

pathmap_explode() Instance Public methods Explode a path into individual components

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

str.chop â new_str Instance Public methods Returns a new String

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

str.size â integer Instance Public methods Returns the character length

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

str.bytesize â integer Instance Public methods Returns the length of str

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

pathmap_partial(n) Instance Public methods Extract a partial path from the path

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

str.bytes â an_array Instance Public methods Returns an array of bytes in

2025-01-10 15:47:30