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

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

str str Instance Public methods AppendâConcatenates

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

str == obj â true or false Instance Public methods EqualityâIf obj

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

str.setbyte(index, integer) â integer Instance Public methods modifies the

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

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

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

str.hash â fixnum Instance Public methods Return a hash based on the string's

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

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

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

str.ord â integer Instance Public methods Return the Integer

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

str.upto(other_str, exclusive=false) {|s| block } â strstr.upto(other_str, exclusive=false) â an_enumerator

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

str.each_byte {|fixnum| block } â strstr.each_byte â an_enumerator Instance Public

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

str.to_sym â symbol Instance Public methods Returns the Symbol

2025-01-10 15:47:30