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:
parent
563cd015e5
commit
b847ca06bf
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue