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

Defined in:

kyaml/any.cr

Instance Method Summary

Instance methods inherited from class Reference

==(other : KYAML::Any) ==

Instance methods inherited from class Object

to_kyaml(io : IO) : Nil
to_kyaml(builder : KYAML::Builder) : Nil
to_kyaml : String
to_kyaml

Instance Method Detail

def ===(other : KYAML::Any) #

[View source]