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

- old
+ new

@@ -1,13 +1,14 @@ # HTML writer # data dictionary entity # History: # Stan Smith 2015-03-26 original script +# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS -require 'html_entityIndex' -require 'html_entityAttribute' +require_relative 'html_entityIndex' +require_relative 'html_entityAttribute' module ADIWG module Mdtranslator module Writers module Html @@ -18,11 +19,11 @@ end def writeHtml(hEntity) # classes used - htmlEntIndex = $HtmlNS::MdHtmlEntityIndex.new(@html) - htmlEntAttrib = $HtmlNS::MdHtmlEntityAttribute.new(@html) + htmlEntIndex = MdHtmlEntityIndex.new(@html) + htmlEntAttrib = MdHtmlEntityAttribute.new(@html) # entity - user assigned entity id s = hEntity[:entityId] if !s.nil? @html.em('Entity ID: ')