Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add missing #warn in #init_with for #yaml_initialize deprecation

  • Loading branch information...
commit f72095580d9f8b7f1bae9f4ea4c4b80b97d13a8e 1 parent f506d5e
@eregon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/psych/visitors/to_ruby.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.