From 94365e53450cbedcdb1eac8f9ba131f1cf6b5501 Mon Sep 17 00:00:00 2001 From: tenderlove Date: Sat, 17 Apr 2010 03:04:03 +0000 Subject: * 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 --- ext/psych/lib/psych/visitors/yaml_tree.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext') 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 -- cgit v1.2.3