yaml(io = nil, options = {})
public
# File ext/psych/lib/psych/nodes/node.rb, line 43
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