diff options
| author | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-10 19:55:18 +0000 |
|---|---|---|
| committer | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-10 19:55:18 +0000 |
| commit | 8b4c7fd10c041d98488913c4a684965809a477ee (patch) | |
| tree | db80e493d079350f0123f8fa9783684a5d66b685 /lib/yaml | |
| parent | e65605a42c23776b788ba875b10a53840aa85dba (diff) | |
| download | ruby-8b4c7fd10c041d98488913c4a684965809a477ee.tar.gz ruby-8b4c7fd10c041d98488913c4a684965809a477ee.tar.xz ruby-8b4c7fd10c041d98488913c4a684965809a477ee.zip | |
* ext/syck/gram.c ext/syck/handler.c ext/syck/implicit.c
ext/syck/node.c ext/syck/rubyext.c ext/syck/syck.c
ext/syck/syck.h ext/syck/token.c: updated to Syck 0.27
* lib/yaml/loader.rb: new YAML::Loader class
* lib/yaml.rb: loading of type families leverages YAML::DefaultLoader
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/yaml')
| -rw-r--r-- | lib/yaml/loader.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/yaml/loader.rb b/lib/yaml/loader.rb new file mode 100644 index 000000000..eb0709e10 --- /dev/null +++ b/lib/yaml/loader.rb @@ -0,0 +1,14 @@ +# +# YAML::Loader class +# .. type handling .. +# +module YAML + class Loader + TRANSFER_DOMAINS = { + 'yaml.org,2002' => {}, + 'ruby.yaml.org,2002' => {} + } + PRIVATE_TYPES = {} + IMPLICIT_TYPES = [ 'null', 'bool', 'time', 'int', 'float' ] + end +end |
