diff options
author | Benoit Daloze <eregontp@gmail.com> | 2012-03-23 13:37:04 +0100 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2012-03-23 13:37:04 +0100 |
commit | f72095580d9f8b7f1bae9f4ea4c4b80b97d13a8e (patch) | |
tree | 06a399f1296ad95d56b40259b99a1d63da1ab606 | |
parent | f506d5e4762b74536a5821392f06ec1c24e89536 (diff) | |
download | psych-f72095580d9f8b7f1bae9f4ea4c4b80b97d13a8e.zip |
add missing #warn in #init_with for #yaml_initialize deprecation
-rw-r--r-- | lib/psych/visitors/to_ruby.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/psych/visitors/to_ruby.rb b/lib/psych/visitors/to_ruby.rb index 3db67a3..2e082f9 100644 --- a/lib/psych/visitors/to_ruby.rb +++ b/lib/psych/visitors/to_ruby.rb @@ -285,7 +285,7 @@ module Psych o.init_with c elsif o.respond_to?(:yaml_initialize) if $VERBOSE - "Implementing #{o.class}#yaml_initialize is deprecated, please implement \"init_with(coder)\"" + warn "Implementing #{o.class}#yaml_initialize is deprecated, please implement \"init_with(coder)\"" end o.yaml_initialize c.tag, c.map else |