1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
why 2003-06-05 17:42:06 +00:00
parent b5d717afda
commit 56796022a6
5 changed files with 76 additions and 63 deletions

View file

@ -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