From 56796022a658e31133ee05c10718ca8af8e20045 Mon Sep 17 00:00:00 2001 From: why Date: Thu, 5 Jun 2003 17:42:06 +0000 Subject: * ext/syck/rubyext.c (syck_parser_mark): was a bit heavy on the GC. * lib/yaml.rb (YAML::transfer): added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/yaml.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/yaml.rb') diff --git a/lib/yaml.rb b/lib/yaml.rb index 161979bb52..4bafa7c5d6 100644 --- a/lib/yaml.rb +++ b/lib/yaml.rb @@ -111,6 +111,13 @@ module YAML @@loader.detect_implicit( val ) end + # + # Apply a transfer method to a Ruby object + # + def YAML.transfer( type_id, obj ) + @@loader.transfer( type_id, obj ) + end + # # Method to extract colon-seperated type and class, returning # the type and the constant of the class @@ -147,6 +154,7 @@ module YAML end require 'yaml/rubytypes' +require 'yaml/types' # # ryan: You know how Kernel.p is a really convenient way to dump ruby -- cgit v1.2.3