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

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

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

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

str.each_char {|cstr| block } â strstr.each_char â an_enumerator Instance Public methods

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

String#kconv(to_enc, from_enc) Instance Public methods Convert self

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

ext(newext='') Instance Public methods Replace the file extension with newext

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

str.prepend(other_str) â str Instance Public methods PrependâPrepend the given

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

str.oct â integer Instance Public methods Treats leading characters of str

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

str.strip! â str or nil Instance Public methods Removes leading and trailing

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

str.scan(pattern) â arraystr.scan(pattern) {|match, ...| block } â str Instance

2025-01-10 15:47:30