Sha256: 99e44b105e3be72883cfadd553a232d43d14746d943e0e55d420cf3338b7ce0f
Contents?: true
Size: 1.32 KB
Versions: 16
Compression:
Stored size: 1.32 KB
Contents
# Writer - html metadata writer # History: # Stan Smith 2015-01-28 original script # Stan Smith 2015-06-23 replace global ($response) with passed in object (responseObj) # Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS require 'builder' require_relative 'version' require_relative 'md_html_writer' module ADIWG module Mdtranslator module Writers module Html def self.startWriter(intObj, responseObj, paramsObj) # set the format of the output file based on the writer specified responseObj[:writerFormat] = 'html' responseObj[:writerVersion] = ADIWG::Mdtranslator::Writers::Html::VERSION # create new HTML document html = Builder::XmlMarkup.new(indent: 3) metadataWriter = MdHtmlWriter.new(html, intObj, paramsObj) metadata = metadataWriter.writeHtml() # set writer pass to true if no messages # false or warning will be set by code that places the message if responseObj[:writerMessages].length == 0 responseObj[:writerPass] = true end return metadata end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems