diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-17 03:04:03 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-17 03:04:03 +0000 |
commit | 94365e53450cbedcdb1eac8f9ba131f1cf6b5501 (patch) | |
tree | eed5af260f854eb07aa0c924dffbe6dedcf77c86 | |
parent | 8b261b413c288d7e15851ebbb391fd98322aaeba (diff) | |
download | ruby-94365e53450cbedcdb1eac8f9ba131f1cf6b5501.tar.gz |
* ext/psych/lib/psych/visitors/yaml_tree.rb (find_ivars): ignore
to_yaml_properties defined by syck.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ext/psych/lib/psych/visitors/yaml_tree.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/psych/lib/psych/visitors/yaml_tree.rb b/ext/psych/lib/psych/visitors/yaml_tree.rb index 4f990a73d6..c70f24886e 100644 --- a/ext/psych/lib/psych/visitors/yaml_tree.rb +++ b/ext/psych/lib/psych/visitors/yaml_tree.rb @@ -251,10 +251,10 @@ module Psych private # FIXME: remove this method once "to_yaml_properties" is removed def find_ivars target - m = target.method(:to_yaml_properties) - unless m.source_location.first.start_with?(Psych::DEPRECATED) + loc = target.method(:to_yaml_properties).source_location.first + unless loc.start_with?(Psych::DEPRECATED) || loc.end_with?('rubytypes.rb') if $VERBOSE - warn "to_yaml_properties is deprecated, please implement \"encode_with(coder)\"" + warn "#{loc}: to_yaml_properties is deprecated, please implement \"encode_with(coder)\"" end return target.to_yaml_properties end |