Sha256: 2cee5d32c5fc9d9893b90f1130c67e411e77d40dbfd4e39f0c881e2efeb132ce

Contents?: true

Size: 148 Bytes

Versions: 7

Compression:

Stored size: 148 Bytes

Contents

module FromHash
  def from_hash(ops)
    ops.each do |k,v|
      send("#{k}=",v)
    end
  end
  def initialize(ops={})
    from_hash(ops)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
GFunk911-mharris_ext-1.1.0 lib/mharris_ext/from_hash.rb
GFunk911-mharris_ext-1.2.0 lib/mharris_ext/from_hash.rb
GFunk911-mharris_ext-1.3.0 lib/mharris_ext/from_hash.rb
GFunk911-mharris_ext-1.4.0 lib/mharris_ext/from_hash.rb
GFunk911-mharris_ext-1.4.1 lib/mharris_ext/from_hash.rb
GFunk911-mharris_ext-1.4.2 lib/mharris_ext/from_hash.rb
GFunk911-mharris_ext-1.4.3 lib/mharris_ext/from_hash.rb