about summary refs log tree commit homepage
path: root/HACKING
blob: 88b675b2f9ea0fa5c9d05ca32b52581f8e1b632e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
serialization (dtas-player)
---------------------------

* objects serialize using the "to_hsh" method (like "to_hash", but omits
  default values) and then to YAML.  We avoid exposing the fact we use
  Ruby (or any programming language) in any formats.

* every serializable class defines a "load" singleton method which takes the
  output Hash of "to_hsh"

* we avoid serializing default values to make the state file shorter and
  more suitable for human viewing and editing.