Module: DTAS::Serialize
- Defined in:
- lib/dtas/serialize.rb
Overview
used to serialize player state to the state file
Instance Method Summary collapse
Instance Method Details
#ivars_to_hash(ivars, rv = {}) ⇒ Object
:nodoc:
7 8 9 10 |
# File 'lib/dtas/serialize.rb', line 7 def ivars_to_hash(ivars, rv = {}) ivars.each { |k| rv[k] = instance_variable_get("@#{k}") } rv end |