Module: Treat::Helpers::String::Unescapable
- Defined in:
- lib/treat/helpers/string.rb
Overview
Counterpart to Treat::Helpers::Escapable; unescapes floats, restoring the orgiinal text.
Constant Summary collapse
- EscapedEscapeChar =
Escaped for regex.
'\^\^\^'
- Regex =
Regex for unescape.
/([0-9]+)#{EscapedEscapeChar}([0-9]+)/
Instance Method Summary collapse
-
#unescape_floats! ⇒ Object
Unescape float periods (restore text).