Sha256: 9bf884c339924568a5ad2d0386f793b495d3072c819a39dfdcb322e281b603bf
Contents?: true
Size: 593 Bytes
Versions: 14
Compression:
Stored size: 593 Bytes
Contents
require 'mspire/mzml/list' module Mspire class Mzml class DataProcessing attr_accessor :id, :processing_methods # yields self if given a block def initialize(id, processing_methods=[], &block) @id, @processing_methods = id, processing_methods block.call(self) if block end def to_xml(builder) builder.dataProcessing( id: @id ) do |dp_n| processing_methods.each do |proc_method| proc_method.to_xml(dp_n) end end builder end extend(Mspire::Mzml::List) end end end
Version data entries
14 entries across 14 versions & 1 rubygems