Flect.String

Contains various string processing utilities.

Source

Functions summary

Functions

expand_escapes(str, type)

Expands escape sequences in a string. Returns the resulting string.

str must be a string. It is allowed to be empty or contain no escape sequences. type must be :string if str was lexed as a string or :character if str was lexed as a character.

Source

strip_quotes(str)

Strips the leading and trailing quotes from a string. Returns the resulting string.

str must be a string which is assumed to contain at least two single or double quotes.

Source