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

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

string.to_d â bigdecimal Instance Public methods Convert string

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

str.start_with?([prefixes]+) â true or false Instance Public methods Returns

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

string.clear â string Instance Public methods Makes string empty.

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

str.to_s â strstr.to_str â str Instance Public methods Returns the

2025-01-10 15:47:30