summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-05 17:42:06 +0000
committerwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-05 17:42:06 +0000
commit99eba2f1d2c7fb55861ee8a1ba8c4db0d0180787 (patch)
treeaa3fbea0f980b10b8e3f19e5ace2a6b4e28e878a /lib
parent353425e6a0c12026f6bdf0855128210b84299f25 (diff)
downloadruby-99eba2f1d2c7fb55861ee8a1ba8c4db0d0180787.tar.gz
ruby-99eba2f1d2c7fb55861ee8a1ba8c4db0d0180787.tar.xz
ruby-99eba2f1d2c7fb55861ee8a1ba8c4db0d0180787.zip
* ext/syck/rubyext.c (syck_parser_mark): was a bit heavy on the GC.
* lib/yaml.rb (YAML::transfer): added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/yaml.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/yaml.rb b/lib/yaml.rb
index 161979bb5..4bafa7c5d 100644
--- a/lib/yaml.rb
+++ b/lib/yaml.rb
@@ -112,6 +112,13 @@ module YAML
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