I see that types that include YAML::Serializable acquire the to_yaml instance method here. However, after scanning the source multiple times, I am at a loss as to where the from_yaml class method comes from. Can anyone point me in the right direction?
It’s a global thing that is defined when you require "yaml"
via https://github.com/crystal-lang/crystal/blob/4e6c0f26e232385441913cfb0dfbbe366f8dbf71/src/yaml/from_yaml.cr#L11-L13.
Yep, thanks.