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

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

str.tr_s(from_str, to_str) â new_str Instance Public methods Processes a

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

str.each_line(separator=$/) {|substr| block } â strstr.each_line(separator=$/) â an_enumerator

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

str.hex â integer Instance Public methods Treats leading characters from

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

str.split(pattern=$;, [limit]) â anArray Instance Public methods Divides

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

/(p1 = v1, p2 = v2) Instance Public methods Alias for:

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

shorten( len = 120 ) Instance Public methods From tdiary.rb

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

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

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

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

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

str.to_str â str Instance Public methods Returns the receiver.

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

str.tr_s!(from_str, to_str) â str or nil Instance Public methods Performs

2025-01-10 15:47:30