class Regex
Overview
Deviation from stdlib YAML::Any: upstream.
$~ = $~raisesNilAssertionErrorwhen the regex didn't match, so guard it. Theif value` guard skips propagation on a match failure, so now the falsey path returns clean.
Included Modules
- Regex::PCRE2
Defined in:
kyaml/any.crInstance Method Summary
Instance methods inherited from class Reference
==(other : KYAML::Any)
==
Instance methods inherited from class Object
to_kyaml(io : IO) : Nilto_kyaml(builder : KYAML::Builder) : Nil
to_kyaml : String to_kyaml