Support for the Ruby 2.4 series has ended. See here for reference.
BasicObject
Convert an object to YAML.  See Psych.dump for more information on the available options.
 
               # File psych/lib/psych/core_ext.rb, line 14
def psych_to_yaml options = {}
  Psych.dump self, options
end