Module: DTAS::Serialize
- Defined in:
- lib/dtas/serialize.rb
Overview
Copyright © 2013-2014, Eric Wong <[email protected]> and all contributors License: GPLv3 or later (www.gnu.org/licenses/gpl-3.0.txt)
Instance Method Summary collapse
Instance Method Details
#ivars_to_hash(ivars, rv = {}) ⇒ Object
:nodoc:
4 5 6 7 |
# File 'lib/dtas/serialize.rb', line 4 def ivars_to_hash(ivars, rv = {}) ivars.each { |k| rv[k] = instance_variable_get("@#{k}") } rv end |