Module: Merge
- Included in:
- Ms::Ident::Pepxml::AminoacidModification, Ms::Ident::Pepxml::MsmsPipelineAnalysis, Ms::Ident::Pepxml::MsmsRunSummary, Ms::Ident::Pepxml::SampleEnzyme, Ms::Ident::Pepxml::SearchDatabase, Ms::Ident::Pepxml::SearchHit, Ms::Ident::Pepxml::SearchSummary, Ms::Ident::Pepxml::SpectrumQuery, Ms::Ident::Pepxml::TerminalModification
- Defined in:
- lib/merge.rb
Instance Method Summary collapse
-
#merge!(hash = {}, &block) ⇒ Object
allows objects to be set from a hash.
Instance Method Details
#merge!(hash = {}, &block) ⇒ Object
allows objects 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 |