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.8.4 lib/merge.rb
mspire-0.8.3 lib/merge.rb
mspire-0.8.2 lib/merge.rb
mspire-0.8.1 lib/merge.rb
mspire-0.8.0 lib/merge.rb
mspire-0.7.18 lib/merge.rb
mspire-0.7.17 lib/merge.rb
mspire-0.7.13 lib/merge.rb
mspire-0.7.12 lib/merge.rb
mspire-0.7.11 lib/merge.rb
mspire-0.7.10 lib/merge.rb
mspire-0.7.9 lib/merge.rb
mspire-0.7.8 lib/merge.rb
mspire-0.7.7 lib/merge.rb
mspire-0.7.6 lib/merge.rb
mspire-0.7.5 lib/merge.rb
mspire-0.7.4 lib/merge.rb
mspire-0.7.3 lib/merge.rb
mspire-0.7.2 lib/merge.rb
mspire-0.6.26 lib/merge.rb