diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-04-24 15:28:24 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-04-24 15:28:24 -0700 |
commit | 88bcb83729ebea6a7d4581b3100dfa7a783a9ff7 (patch) | |
tree | 1cb9c46264427527c312ae8bb1086f48f87acfff /lib | |
parent | c69c270f19f40e6e7e12905bfeaa03ce977b7ec2 (diff) | |
download | psych-88bcb83729ebea6a7d4581b3100dfa7a783a9ff7.zip |
adding deprecated method "tagurize"
Diffstat (limited to 'lib')
-rw-r--r-- | lib/psych/deprecated.rb | 6 |
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 |