Sha256: 59f26ce4aef803d43d6422e27d71d7d18756a91e73ce286fadc43568f5c3ac08

Contents?: true

Size: 985 Bytes

Versions: 4

Compression:

Stored size: 985 Bytes

Contents

# HTML writer
# format

# History:
# 	Stan Smith 2015-03-27 original script

module ADIWG
    module Mdtranslator
        module Writers
            module Html

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

                    def writeHtml(hFormat)

                        # resource format - format name
                        s = hFormat[:formatName]
                        if !s.nil?
                            @html.em('Resource format: ')
                            @html.text!(s)
                            s = hFormat[:formatVersion]
                            if !s.nil?
                                @html.em('Version: ')
                                @html.text!(s)
                            end
                            @html.br
                        end

                    end # writeHtml

                end # class

            end
        end
    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
adiwg-mdtranslator-1.2.1 lib/adiwg/mdtranslator/writers/html/sections/html_format.rb
adiwg-mdtranslator-1.2.0 lib/adiwg/mdtranslator/writers/html/sections/html_format.rb
adiwg-mdtranslator-1.1.1 lib/adiwg/mdtranslator/writers/html/sections/html_format.rb
adiwg-mdtranslator-1.1.0 lib/adiwg/mdtranslator/writers/html/sections/html_format.rb