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

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

str.codepoints â an_array Instance Public methods Returns an array of the

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

str.tr!(from_str, to_str) â str or nil Instance Public methods Translates

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

str + other_str â new_str Instance Public methods ConcatenationâReturns a

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

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

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

str.succ â new_str Instance Public methods Returns the successor to str

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

str.byteslice(fixnum) â new_str or nilstr.byteslice(fixnum, fixnum) â new_str or nilstr.byteslice(range) â new_str or nil

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

str.concat(integer) â strstr.concat(obj) â str Instance Public methods

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

/(p1 = v1, p2 = v2) Instance Public methods Alias for:

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

str.ljust(integer, padstr=' ') â new_str Instance Public methods If integer

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

str.each_line(separator=$/) {|substr| block } â strstr.each_line(separator=$/) â an_enumerator

2025-01-10 15:47:30