summaryrefslogtreecommitdiff
path: root/lib/yaml.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yaml.rb')
-rw-r--r--lib/yaml.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/yaml.rb b/lib/yaml.rb
index 4bafa7c5d6..39e176541e 100644
--- a/lib/yaml.rb
+++ b/lib/yaml.rb
@@ -118,6 +118,13 @@ module YAML
@@loader.transfer( type_id, obj )
end
+ #
+ # Apply any implicit a node may qualify for
+ #
+ def YAML.try_implicit( obj )
+ YAML.transfer( YAML.detect_implicit( obj ), obj )
+ end
+
#
# Method to extract colon-seperated type and class, returning
# the type and the constant of the class