summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-04-24 15:28:24 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-04-24 15:28:24 -0700
commit88bcb83729ebea6a7d4581b3100dfa7a783a9ff7 (patch)
tree1cb9c46264427527c312ae8bb1086f48f87acfff /lib
parentc69c270f19f40e6e7e12905bfeaa03ce977b7ec2 (diff)
downloadpsych-88bcb83729ebea6a7d4581b3100dfa7a783a9ff7.zip
adding deprecated method "tagurize"
Diffstat (limited to 'lib')
-rw-r--r--lib/psych/deprecated.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/psych/deprecated.rb b/lib/psych/deprecated.rb
index b306b85..1d401d9 100644
--- a/lib/psych/deprecated.rb
+++ b/lib/psych/deprecated.rb
@@ -50,6 +50,12 @@ module Psych
key = [domain, type_tag].join ':'
@domain_types[key] = [key, block]
end
+
+ def self.tagurize thing
+ warn "#{caller[0]}: add_private_type is deprecated, use add_domain_type" if $VERBOSE
+ return thing unless String === thing
+ "tag:yaml.org,2002:#{thing}"
+ end
end
class Object