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

reverse!
  • References/Ruby on Rails/Ruby/Classes/String

str.reverse! â str Instance Public methods Reverses str in place

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

str.dump â new_str Instance Public methods Produces a version of str

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

str.squeeze([other_str]*) â new_str Instance Public methods Builds a set

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

str.crypt(salt_str) â new_str Instance Public methods Applies a one-way cryptographic

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

block_scanf(fstr) Instance Public methods Scans the current string until the

2025-01-10 15:47:30
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
=~
  • References/Ruby on Rails/Ruby/Classes/String

str =~ obj â fixnum or nil Instance Public methods MatchâIf obj

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