Permalink
Browse files

add missing #warn in #init_with for #yaml_initialize deprecation

  • Loading branch information...
1 parent f506d5e commit f72095580d9f8b7f1bae9f4ea4c4b80b97d13a8e @eregon committed Mar 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/psych/visitors/to_ruby.rb
@@ -285,7 +285,7 @@ def init_with o, h, node
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

0 comments on commit f720955

Please sign in to comment.