diff options
author | Eric Wong <e@80x24.org> | 2015-01-20 01:33:38 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-01-20 02:08:44 +0000 |
commit | 65bb4baf0e479ff7cfbf0a8422824834c9f06ab1 (patch) | |
tree | 9a0bc4866c5d9e3ad5a896ddb814542dd29f902d /lib/dtas/serialize.rb | |
parent | 51e6240767b394e255d05a0f712a1da853485e82 (diff) | |
download | dtas-65bb4baf0e479ff7cfbf0a8422824834c9f06ab1.tar.gz |
Hopefully this makes the code less daunting to newcomers
Diffstat (limited to 'lib/dtas/serialize.rb')
-rw-r--r-- | lib/dtas/serialize.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dtas/serialize.rb b/lib/dtas/serialize.rb index dc956dc..1a7d477 100644 --- a/lib/dtas/serialize.rb +++ b/lib/dtas/serialize.rb @@ -1,5 +1,7 @@ # Copyright (C) 2013-2015 all contributors <dtas-all@nongnu.org> # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) + +# used to serialize player state to the state file module DTAS::Serialize # :nodoc: def ivars_to_hash(ivars, rv = {}) ivars.each { |k| rv[k] = instance_variable_get("@#{k}") } |