diff options
author | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-18 01:06:00 +0000 |
---|---|---|
committer | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-18 01:06:00 +0000 |
commit | d21bd1c06dbd04b89cdf4d50ce85fede95a7bcc9 (patch) | |
tree | b1ac96e38ef670c683e12092084de165d11fe080 /lib/yaml.rb | |
parent | ae28f1b6b3b22afb529f599385d1f2af258624e9 (diff) |
* ext/syck/rubyext.c (rb_syck_load_handler): merge key implemented.
* ext/syck/rubyext.c (transfer_find_i): removed use of String#=~ in favor
of Regexp#match.
* lib/yaml.rb: YAML::try_implicit returns.
* lib/yaml/rubytypes.rb: Regexps added for type matching.
* lib/yaml/emitter.rb: fix String + nil error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/yaml.rb')
-rw-r--r-- | lib/yaml.rb | 7 |
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 |