Module: NWN::Gff::Handler::YAML
- Defined in:
- lib/nwn/yaml_support.rb
Constant Summary collapse
- NonInlineableFields =
These field types can never be inlined in YAML.
[:struct, :list, :cexolocstr]
- Domain =
See www.taguri.org/ for the exact meaning of this.
"nwn-lib.elv.es,2008-12"
Class Method Summary collapse
Class Method Details
.dump(data, io) ⇒ Object
15 16 17 18 19 |
# File 'lib/nwn/yaml_support.rb', line 15 def self.dump data, io d = data.to_yaml io.puts d d.size end |
.load(io) ⇒ Object
12 13 14 |
# File 'lib/nwn/yaml_support.rb', line 12 def self.load io YAML.load(io) end |