Included modules
Attributes
| bytes | [R] |
Public class methods
dump
(gff, io = nil, data_type = nil)
Takes a NWN::Gff::Gff object and dumps it to io, including the header. If io is nil, return the raw bytes, otherwise the number of bytes written.
[show source]
# File lib/nwn/gff/writer.rb, line 12 def self.dump(gff, io = nil, data_type = nil) ret = new(gff, data_type).bytes if io io.write(ret) ret.size else ret end end