class

Word

Inherits Reference < Object

The basic unit of the owoify function.

Constructors

new(word : String)
Source

Instance methods

replace(search_value : Regex, replace_value : String, replace_replaced_words : Bool = false)

Replace all matched items with a string.

Source
replace_with_func_multiple(search_value : Regex, func : Proc(String, String, String), replace_replaced_words : Bool = false)

Replace all matched items by repeated calling a proc that accepts two strings and returns a string.

Source
replace_with_func_single(search_value : Regex, func : Proc(String), replace_replaced_words : Bool = false)

Replace all matched items by repeatedly calling a proc that doesn't accept any parameter and returns a string.

Source
to_s(io)
Source