1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Don't warn when YAML.quick_emit is called by Object#to_yaml.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2010-04-05 02:42:37 +00:00
parent 563cd015e5
commit b847ca06bf

View file

@ -397,7 +397,9 @@ module Syck
# Allocate an Emitter if needed
#
def self.quick_emit( oid, opts = {}, &e )
warn "#{caller[0]}: YAML.quick_emit is deprecated" if $VERBOSE
if $VERBOSE && /syck\/rubytypes\.rb:\d+:in `to_yaml'/ !~ caller[0]
warn "#{caller[0]}: YAML.quick_emit is deprecated"
end
out =
if opts.is_a? Emitter
opts