summaryrefslogtreecommitdiff
path: root/lib/yaml.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yaml.rb')
-rw-r--r--lib/yaml.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/yaml.rb b/lib/yaml.rb
index 161979bb525..4bafa7c5d61 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