lib/adiwg/mdtranslator/writers/html/sections/html_processStep.rb in adiwg-mdtranslator-1.2.1 vs lib/adiwg/mdtranslator/writers/html/sections/html_processStep.rb in adiwg-mdtranslator-1.3.0

- old
+ new

@@ -1,13 +1,14 @@ # HTML writer # process step # History: # Stan Smith 2015-03-27 original script +# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS -require 'html_dateTime' -require 'html_responsibleParty' +require_relative 'html_dateTime' +require_relative 'html_responsibleParty' module ADIWG module Mdtranslator module Writers module Html @@ -18,11 +19,11 @@ end def writeHtml(hStep) # classes used - htmlDateTime = $HtmlNS::MdHtmlDateTime.new(@html) - htmlResParty = $HtmlNS::MdHtmlResponsibleParty.new(@html) + htmlDateTime = MdHtmlDateTime.new(@html) + htmlResParty = MdHtmlResponsibleParty.new(@html) # process step - id s = hStep[:stepId] if !s.nil? @html.em('Step ID: ')