Sha256: d69f870d32a0d03e0e55cf229ba23481a9a1418db4e71c694dcee5a3e3dae75a
Contents?: true
Size: 659 Bytes
Versions: 7
Compression:
Stored size: 659 Bytes
Contents
# ISO <<Class>> MD_Distribution # writer output in XML # History: # Stan Smith 2013-09-25 original script # Stan Smith 2014-07-09 modify require statements to function in RubyGem structure require 'class_distributor' class MD_Distribution def initialize(xml) @xml = xml end def writeXML(aDistributors) # classes used distributorClass = MD_Distributor.new(@xml) @xml.tag!('gmd:MD_Distribution') do # distribution - distributor - required unless aDistributors.empty? aDistributors.each do |hDistributor| @xml.tag!('gmd:distributor') do distributorClass.writeXML(hDistributor) end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems