Module: Merge

Included in:
Mspire::Ident::PeptideHit, Mspire::Ident::Pepxml::AminoacidModification, Mspire::Ident::Pepxml::MsmsPipelineAnalysis, Mspire::Ident::Pepxml::MsmsRunSummary, Mspire::Ident::Pepxml::SampleEnzyme, Mspire::Ident::Pepxml::SearchDatabase, Mspire::Ident::Pepxml::SearchHit, Mspire::Ident::Pepxml::SearchSummary, Mspire::Ident::Pepxml::SpectrumQuery, Mspire::Ident::Pepxml::TerminalModification
Defined in:
lib/merge.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) merge!(hash = {}, &block)

allows object attributes to be set from a hash



3
4
5
6
# File 'lib/merge.rb', line 3

def merge!(hash={}, &block)
  hash.each {|k,v| send("#{k}=",v) }
  block.call(block_arg) if block
end