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
  def self.dump data, io
    d = data.to_yaml
    io.puts d
    d.size
  end
load (io)
[show source]
# File lib/nwn/yaml_support.rb, line 11
  def self.load io
    YAML.load(io)
  end