diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-04-24 13:35:44 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-04-24 13:35:44 -0700 |
commit | 700a359dc7a8d33e76ffdb31050183353a5cfd4b (patch) | |
tree | e55bf8fcdc6d46d7da8dbcd6f0542bfa9bd16dd3 /lib/psych.rb | |
parent | b5814a70f2450ea37693e2704b039a6730aa7e87 (diff) | |
download | psych-700a359dc7a8d33e76ffdb31050183353a5cfd4b.zip |
adding support for deprecated "add_private_type" function
Diffstat (limited to 'lib/psych.rb')
-rw-r--r-- | lib/psych.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/psych.rb b/lib/psych.rb index 16602ef..59f9712 100644 --- a/lib/psych.rb +++ b/lib/psych.rb @@ -218,13 +218,6 @@ module Psych @domain_types[key] = [key, block] end - def self.add_ruby_type type_tag, &block - warn "#{caller[0]}: add_ruby_type is deprecated, use add_domain_type" if $VERBOSE && !caller[0].start_with?(File.dirname(__FILE__)) - domain = 'ruby.yaml.org,2002' - key = ['tag', domain, type_tag].join ':' - @domain_types[key] = [key, block] - end - def self.remove_type type_tag @domain_types.delete type_tag end @@ -241,6 +234,5 @@ module Psych attr_accessor :dump_tags attr_accessor :domain_types end - # :startdoc: end |