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 crystal/from_yaml.cr at 4e6c0f26e232385441913cfb0dfbbe366f8dbf71 · crystal-lang/crystal · GitHub.