class Word
- Word
- Reference
- Object
Overview
The basic unit of the owoify function.
Defined in:
structures/word.crConstructors
Instance Method Summary
-
#replace(search_value : Regex, replace_value : String, replace_replaced_words : Bool = false)
Replace all matched items with a string.
-
#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.
-
#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.
- #to_s(io)
Constructor Detail
Instance Method Detail
def replace(search_value : Regex, replace_value : String, replace_replaced_words : Bool = false)
#
Replace all matched items with a string.
def 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.
def 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.