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.6.25 lib/merge.rb
mspire-0.6.24 lib/merge.rb
mspire-0.6.22 lib/merge.rb
mspire-0.6.21 lib/merge.rb
mspire-0.6.20 lib/merge.rb
mspire-0.6.19 lib/merge.rb
mspire-0.6.18 lib/merge.rb
mspire-0.6.12 lib/merge.rb
mspire-0.6.11 lib/merge.rb
mspire-0.6.9 lib/merge.rb
mspire-0.6.7 lib/merge.rb
mspire-0.6.6 lib/merge.rb
mspire-0.6.2 lib/merge.rb
mspire-0.6.1 lib/merge.rb