Sha256: 2a6388efbc678f0da589834eec678eebc8530d7dde986575f398b0e71cc670df

Contents?: true

Size: 1.17 KB

Versions: 21

Compression:

Stored size: 1.17 KB

Contents

# HTML writer
# vector representation

# History:
#  Stan Smith 2017-03-28 original script

require_relative 'html_vectorObject'

module ADIWG
   module Mdtranslator
      module Writers
         module Html

            class Html_VectorRepresentation

               def initialize(html)
                  @html = html
               end

               def writeHtml(hVector)

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

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

                  # 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 # writeHtml
            end # Html_VectorRepresentation

         end
      end
   end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.3.4 lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb
adiwg-mdtranslator-2.3.3 lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb
adiwg-mdtranslator-2.3.2 lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb
adiwg-mdtranslator-2.3.1 lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb
adiwg-mdtranslator-2.3.0 lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb
adiwg-mdtranslator-2.2.0 lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb
adiwg-mdtranslator-2.1.2 lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb
adiwg-mdtranslator-2.1.1 lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb
adiwg-mdtranslator-2.1.0 lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb
adiwg-mdtranslator-2.0.0 lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb
adiwg-mdtranslator-2.0.0rc13 lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb
adiwg-mdtranslator-2.0.0rc11 lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb
adiwg-mdtranslator-2.0.0rc10 lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb
adiwg-mdtranslator-2.0.0rc9 lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb
adiwg-mdtranslator-2.0.0rc8 lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb
adiwg-mdtranslator-2.0.0rc7 lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb
adiwg-mdtranslator-2.0.0rc6 lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb
adiwg-mdtranslator-2.0.0rc5 lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb
adiwg-mdtranslator-2.0.0rc4 lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb
adiwg-mdtranslator-2.0.0rc3 lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb