Sha256: f390b683b5b2e1a533bc65ffc044a0878059d6e12eddf3995c30de34af8fffde

Contents?: true

Size: 178 Bytes

Versions: 54

Compression:

Stored size: 178 Bytes

Contents

module Merge
  # allows object attributes to be set from a hash
  def merge!(hash={}, &block)
    hash.each {|k,v| send("#{k}=",v) }
    block.call(block_arg) if block
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
mspire-0.10.8.0 lib/merge.rb
mspire-0.10.7.3 lib/merge.rb
mspire-0.10.7.2 lib/merge.rb
mspire-0.10.7.1 lib/merge.rb
mspire-0.10.7 lib/merge.rb
mspire-0.10.6 lib/merge.rb
mspire-0.10.5 lib/merge.rb
mspire-0.10.4 lib/merge.rb
mspire-0.10.3 lib/merge.rb
mspire-0.10.2 lib/merge.rb
mspire-0.10.1 lib/merge.rb
mspire-0.10.0 lib/merge.rb
mspire-0.9.2 lib/merge.rb
mspire-0.9.1 lib/merge.rb
mspire-0.9.0 lib/merge.rb
mspire-0.8.7 lib/merge.rb
mspire-0.8.6.2 lib/merge.rb
mspire-0.8.6.1 lib/merge.rb
mspire-0.8.6 lib/merge.rb
mspire-0.8.5 lib/merge.rb