class Psych::Nodes::Node

def yaml io = nil, options = {}

See also Psych::Visitors::Emitter

Convert this node to YAML.
##
def yaml io = nil, options = {}
  real_io = io || StringIO.new(''.encode('utf-8'))
  Visitors::Emitter.new(real_io, options).accept self
  return real_io.string unless io
  io
end