Module NWN::Gff::Handler::YAML

  1. lib/nwn/yaml_support.rb

Methods

public class

  1. dump
  2. load

Constants

NonInlineableFields = [:struct, :list, :cexolocstr]   These field types can never be inlined in YAML.
Domain = "nwn-lib.elv.es,2008-12"   See www.taguri.org/ for the exact meaning of this.

Public class methods

dump (data, io)
[show source]
    # File lib/nwn/yaml_support.rb, line 14
14:   def self.dump data, io
15:     d = data.to_yaml
16:     io.puts d
17:     d.size
18:   end
load (io)
[show source]
    # File lib/nwn/yaml_support.rb, line 11
11:   def self.load io
12:     YAML.load(io)
13:   end