lib/adiwg/mdtranslator/writers/html/sections/html_resourceContact.rb in adiwg-mdtranslator-1.2.1 vs lib/adiwg/mdtranslator/writers/html/sections/html_resourceContact.rb in adiwg-mdtranslator-1.3.0
- old
+ new
@@ -1,12 +1,13 @@
# HTML writer
# general resource contacts
# History:
# Stan Smith 2015-03-24 original script
+# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
-require 'html_responsibleParty'
+require_relative 'html_responsibleParty'
module ADIWG
module Mdtranslator
module Writers
module Html
@@ -17,10 +18,10 @@
end
def writeHtml(resourceInfo)
# classes used
- htmlParty = $HtmlNS::MdHtmlResponsibleParty.new(@html)
+ htmlParty = MdHtmlResponsibleParty.new(@html)
# general - contacts
resourceInfo[:pointsOfContact].each do |hResParty|
htmlParty.writeHtml(hResParty)
end