abstract class Class
Overview
Equality extensions to allow value == kyaml_any comparison.
Matches the upstream YAML::Any stdlib patterns, but deviates in implementation.
Upstream defines #=== only on Object and does not unwrap raw before the is_a? check. Switched here to define override on Class so that case-equality unwraps to raw when receiver is a Type.
Why? Class#===(other) shadows Object#===(other), requiring overriding on Class instead.
Defined in:
kyaml/any.crClass Method Summary
Instance Method Summary
Instance methods inherited from struct Value
==(other : KYAML::Any)
==
Instance methods inherited from class Object
to_kyaml(io : IO) : Nilto_kyaml(builder : KYAML::Builder) : Nil
to_kyaml : String to_kyaml