Sha256: 3349674f0b7b92a4e9bf3a615106aa095d57b0aa6e6356574470b81af2de0f9a
Contents?: true
Size: 358 Bytes
Versions: 4
Compression:
Stored size: 358 Bytes
Contents
# Copyright (C) 2013-2016 all contributors <dtas-all@nongnu.org> # License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt> # frozen_string_literal: true # 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}") } rv end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dtas-0.17.0 | lib/dtas/serialize.rb |
dtas-0.16.1 | lib/dtas/serialize.rb |
dtas-0.16.0 | lib/dtas/serialize.rb |
dtas-0.15.0 | lib/dtas/serialize.rb |