Module: DTAS::Serialize

Included in:
Command, Format, RGState, Sink, DTAS::Source::Command
Defined in:
lib/dtas/serialize.rb

Overview

Copyright © 2013, Eric Wong <[email protected]> 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:



5
6
7
8
# File 'lib/dtas/serialize.rb', line 5

def ivars_to_hash(ivars, rv = {})
  ivars.each { |k| rv[k] = instance_variable_get("@#{k}") }
  rv
end