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

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

str.encode(encoding [, options] ) â strstr.encode(dst_encoding, src_encoding [, options] ) â strstr.encode([options]) â str

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

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

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

str.to_i(base=10) â integer Instance Public methods Returns the result of

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

str.sub!(pattern, replacement) â str or nilstr.sub!(pattern) {|match| block } â str or nil Instance

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

str.start_with?([prefixes]+) â true or false Instance Public methods Returns

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

String#toutf8 => string Instance Public methods Convert self

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

String#tojis => string Instance Public methods Convert self

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

str.lstrip! â self or nil Instance Public methods Removes leading whitespace

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

string.to_d â bigdecimal Instance Public methods Convert string

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

str.to_s â strstr.to_str â str Instance Public methods Returns the

2025-01-10 15:47:30