module

Cadmium::Transliterator

Inherits Cadmium::Transliterator::CharMap

Constants

DEFAULT_OPTS = { unknown: "[?]", replace: {} of String | Regex => String, replace_after: {} of String | Regex => String, ignore: [] of String | Char, trim: true, }

Instance methods

parameterize(string : String, separator : String = "-", preserve_case : Bool = false, convert_underscores : Bool = false)

Replaces special characters in a string so that it may be used as part of a ‘pretty’ URL. Based on the ActiveSupport implementation.

Source
replace_str(source, replace)
Source
transliterate(source, **options)

TODO: Swap out options for named parameters

Source

Nested types