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

- old
+ new

@@ -1,14 +1,15 @@ # HTML writer # other resource information # History: # Stan Smith 2015-04-03 original script +# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS -require 'html_browseGraphic' -require 'html_resourceFormat' -require 'html_resourceUsage' +require_relative 'html_browseGraphic' +require_relative 'html_resourceFormat' +require_relative 'html_resourceUsage' module ADIWG module Mdtranslator module Writers module Html @@ -19,12 +20,12 @@ end def writeHtml(resourceInfo) # classes used - htmlBGraph = $HtmlNS::MdHtmlBrowseGraphic.new(@html) - htmlResForm = $HtmlNS::MdHtmlResourceFormat.new(@html) - htmlResUse = $HtmlNS::MdHtmlResourceUsage.new(@html) + htmlBGraph = MdHtmlBrowseGraphic.new(@html) + htmlResForm = MdHtmlResourceFormat.new(@html) + htmlResUse = MdHtmlResourceUsage.new(@html) # general - graphic overview resourceInfo[:graphicOverview].each do |hBrowseG| @html.em('Browse graphic: ') htmlBGraph.writeHtml(hBrowseG)