Module: Doing::StringNormalize
- Included in:
- String
- Defined in:
- lib/doing/normalize.rb
Overview
String to symbol conversion
Instance Method Summary collapse
-
#normalize_age(default = :newest) ⇒ Symbol
Convert an age string to a qualified type.
- #normalize_age!(default = :newest) ⇒ Object
-
#normalize_bool(default = :and) ⇒ Object
Convert a boolean string to a symbol.
- #normalize_bool!(default = :and) ⇒ Object
-
#normalize_case(default = :smart) ⇒ Object
Convert a case sensitivity string to a symbol.
- #normalize_case!(default = :smart) ⇒ Object
- #normalize_change_type ⇒ Object
-
#normalize_list_style(default = :space) ⇒ Symbol
Normalize list output style.
-
#normalize_matching(default = :pattern) ⇒ Object
Convert a matching configuration string to a symbol.
- #normalize_matching!(default = :pattern) ⇒ Object
- #normalize_order(default = :asc) ⇒ Object
-
#normalize_order!(default = :asc) ⇒ Symbol
Convert a sort order string to a qualified type.
-
#normalize_tag_sort(default = :name) ⇒ Symbol
Convert tag sort string to a qualified type.
- #normalize_tag_sort!(default = :name) ⇒ Object
-
#normalize_trigger ⇒ String
Adds ?: to any parentheticals in a regular expression to avoid match groups.
- #normalize_trigger! ⇒ Object
Instance Method Details
#normalize_age(default = :newest) ⇒ Symbol
Convert an age string to a qualified type
#normalize_age!(default = :newest) ⇒ Object
#normalize_bool(default = :and) ⇒ Object
Convert a boolean string to a symbol
#normalize_bool!(default = :and) ⇒ Object
#normalize_case(default = :smart) ⇒ Object
Convert a case sensitivity string to a symbol
#normalize_case!(default = :smart) ⇒ Object
#normalize_change_type ⇒ Object
#normalize_list_style(default = :space) ⇒ Symbol
Normalize list output style
#normalize_matching(default = :pattern) ⇒ Object
Convert a matching configuration string to a symbol
#normalize_matching!(default = :pattern) ⇒ Object
#normalize_order(default = :asc) ⇒ Object
#normalize_order!(default = :asc) ⇒ Symbol
Convert a sort order string to a qualified type
#normalize_tag_sort(default = :name) ⇒ Symbol
Convert tag sort string to a qualified type
#normalize_tag_sort!(default = :name) ⇒ Object
#normalize_trigger ⇒ String
Adds ?: to any parentheticals in a regular expression to avoid match groups