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

1
2
3
4
5
6
7
8
 
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> 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