dtas.git  about / heads / tags
duct tape audio suite for *nix
blob 36d7af2d8c7bcdc93765385dc0cd7f6bd879e3e8 289 bytes (raw)
$ git show v0.9.0:lib/dtas/serialize.rb	# shows this blob on the CLI

1
2
3
4
5
6
7
8
 
# Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
module DTAS::Serialize # :nodoc:
  def ivars_to_hash(ivars, rv = {})
    ivars.each { |k| rv[k] = instance_variable_get("@#{k}") }
    rv
  end
end

git clone git://80x24.org/dtas.git
git clone https://80x24.org/dtas.git