Sha256: ac7a92ac38f84f84b67529cb97dda9b69fc3a8d8a726327b784b7136faedb272

Contents?: true

Size: 1.31 KB

Versions: 16

Compression:

Stored size: 1.31 KB

Contents

# HTML writer
# additional documentation

# History:
# 	Stan Smith 2015-08-21 original script

require_relative 'html_citation'

module ADIWG
    module Mdtranslator
        module Writers
            module Html

                class MdHtmlAdditionalDocumentation
                    def initialize(html)
                        @html = html
                    end

                    def writeHtml(hAddDoc)

                        # classes used
                        htmlCitation = MdHtmlCitation.new(@html)

                        # additional documentation - resource type
                        s = hAddDoc[:resourceType]
                        if !s.nil?
                            @html.em('Resource type: ')
                            @html.text!(s)
                            @html.br
                        end

                        # additional documentation - citation
                        hCitation = hAddDoc[:citation]
                        if !hCitation.empty?
                            @html.em('Citation: ')
                            @html.section(:class=>'block') do
                                htmlCitation.writeHtml(hCitation)
                            end
                        end

                    end # writeHtml

                end # class

            end
        end
    end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
adiwg-mdtranslator-1.4.0 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-1.4.0.beta14 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-1.4.0.beta13 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-1.4.0.beta12 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-1.4.0.beta11 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-1.4.0.beta10 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-1.4.0.beta9 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-1.4.0.beta8 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-1.4.0.beta7 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-1.4.0.beta6 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-1.4.0.beta5 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-1.4.0.beta4 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-1.4.0.beta3 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-1.4.0.beta2 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-1.4.0.beta1 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-1.3.0 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb