summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-03-23 11:08:49 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2012-03-23 11:08:49 -0700
commit986fe21c39749a87fd47b7355e4bdc60f9e0b6c9 (patch)
tree06a399f1296ad95d56b40259b99a1d63da1ab606
parentf506d5e4762b74536a5821392f06ec1c24e89536 (diff)
parentf72095580d9f8b7f1bae9f4ea4c4b80b97d13a8e (diff)
downloadpsych-986fe21c39749a87fd47b7355e4bdc60f9e0b6c9.zip
Merge pull request #53 from eregon/patch-1
add missing #warn in #init_with for #yaml_initialize deprecation
-rw-r--r--lib/psych/visitors/to_ruby.rb2
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