class Word

Overview

The basic unit of the owoify function.

Defined in:

structures/word.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(word : String) #

[View source]

Instance Method Detail

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

Replace all matched items with a string.


[View source]
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.


[View source]
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.


[View source]
def to_s(io) #

[View source]