Sha256: 3a1cea21c1549e6d0b6e282ad6f727a58176e197e3f5602108f829d74cc35ace

Contents?: true

Size: 157 Bytes

Versions: 6

Compression:

Stored size: 157 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
GFunk911-mharris_ext-1.4.4 lib/mharris_ext/from_hash.rb
mongo_scope-0.0.5 lib/mongo_scope/util.rb
mongo_scope-0.0.4 lib/mongo_scope/util.rb
mongo_scope-0.0.3 lib/mongo_scope/util.rb
mongo_scope-0.0.2 lib/mongo_scope/util.rb
mongo_scope-0.0.1 lib/mongo_scope/util.rb