class ADIWG::Mdtranslator::Writers::Html::Html_VectorRepresentation

Public Class Methods

new(html) click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb, line 17
def initialize(html)
   @html = html
end

Public Instance Methods

writeHtml(hVector) click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb, line 21
def writeHtml(hVector)

   # classes used
   objectClass = Html_VectorObject.new(@html)

   # vector representation - topology level
   unless hVector[:topologyLevel].nil?
      @html.em('Topology Level: ')
      @html.text!(hVector[:topologyLevel])
      @html.br
   end

   # vector representation - vector object []
   hVector[:vectorObject].each do |hObject|
      @html.details do
         @html.summary('Vector Object ', 'class' => 'h5')
         @html.section(:class => 'block') do
            objectClass.writeHtml(hObject)
         end
      end
   end

end