lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb in adiwg-mdtranslator-2.17.1 vs lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb in adiwg-mdtranslator-2.18.0rc1
- old
+ new
@@ -4,10 +4,11 @@
# History:
# Stan Smith 2017-10-13 trap missing topology level
# Stan Smith 2017-03-28 original script
require_relative 'html_vectorObject'
+require_relative 'html_scope'
module ADIWG
module Mdtranslator
module Writers
module Html
@@ -20,9 +21,21 @@
def writeHtml(hVector)
# classes used
objectClass = Html_VectorObject.new(@html)
+ scopeClass = Html_Scope.new(@html)
+
+ # vector representation - scope
+ hVector[:scope].each do |scope|
+ @html.details do
+ @html.summary('Scope ', 'class' => 'h5')
+ @html.section(:class => 'block') do
+ scopeClass.writeHtml(hVector[:scope])
+ end
+ end
+ end
+
# vector representation - topology level
unless hVector[:topologyLevel].nil?
@html.em('Topology Level: ')
@html.text!(hVector[:topologyLevel])