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

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

obj.encoding â encoding Instance Public methods Returns the

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

str.insert(index, other_str) â str Instance Public methods Inserts other_str

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

str.slice!(fixnum) â fixnum or nilstr.slice!(fixnum, fixnum) â new_str or nilstr.slice!(range) â new_str or nilstr.slice

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

str.getbyte(index) â 0 .. 255 Instance Public methods returns the

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

str[fixnum] = new_strstr[fixnum, fixnum] = new_strstr[range] = aStringstr[regexp] = new_strstr[regexp, fixnum] = new_strstr[regexp

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

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

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

str.empty? â true or false Instance Public methods Returns true

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