Sha256: cbcb8bcfc4d8465b6d9f01569bdeb49903b971e69c895e71ba0a8e0d071cffdc

Contents?: true

Size: 1.35 KB

Versions: 4

Compression:

Stored size: 1.35 KB

Contents

# HTML writer
# medium

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

module ADIWG
    module Mdtranslator
        module Writers
            module Html

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

                    def writeHtml(hMedium)

                        # medium - name
                        s = hMedium[:mediumName]
                        if !s.nil?
                            @html.em('Medium name: ')
                            @html.text!(s)
                            @html.br
                        end

                        # medium - format
                        s = hMedium[:mediumFormat]
                        if !s.nil?
                            @html.em('Medium format: ')
                            @html.text!(s)
                            @html.br
                        end

                        # medium - note
                        s = hMedium[:mediumNote]
                        if !s.nil?
                            @html.em('Medium note: ')
                            @html.section(:class=>'block') do
                                @html.text!(s)
                            end
                        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_medium.rb
adiwg-mdtranslator-1.2.0 lib/adiwg/mdtranslator/writers/html/sections/html_medium.rb
adiwg-mdtranslator-1.1.1 lib/adiwg/mdtranslator/writers/html/sections/html_medium.rb
adiwg-mdtranslator-1.1.0 lib/adiwg/mdtranslator/writers/html/sections/html_medium.rb