summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-04-16 20:04:37 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-04-16 20:04:37 -0700
commitce61f13ac8ad2852b7b2543e6e130d9e0ae34d8a (patch)
treeb4a93ae19a1df7b1c36d815d8eca993326f90654 /lib
parent0097c811dcd31038ec63de366d30b83061656fdc (diff)
downloadpsych-ce61f13ac8ad2852b7b2543e6e130d9e0ae34d8a.zip
ignoring to_yaml_properties defined by syck
Diffstat (limited to 'lib')
-rw-r--r--lib/psych/visitors/yaml_tree.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/psych/visitors/yaml_tree.rb b/lib/psych/visitors/yaml_tree.rb
index 4f990a7..c70f248 100644
--- a/lib/psych/visitors/yaml_tree.rb
+++ b/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