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

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

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

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

str.squeeze!([other_str]*) â str or nil Instance Public methods Squeezes

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

str.length â integer Instance Public methods Returns the character length

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

String.try_convert(obj) â string or nil Class Public methods Try to convert

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

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

2025-01-10 15:47:30
<<
  • 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

string other_string â -1, 0, +1 or nil Instance Public methods ComparisonâReturns

2025-01-10 15:47:30