Sha256: 6414771bb392470de5355140e76c785786aaa2ac8f7e40e43b8674af0dcd3a08

Contents?: true

Size: 1.4 KB

Versions: 20

Compression:

Stored size: 1.4 KB

Contents

# HTML writer
# data dictionary domain member

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

module ADIWG
    module Mdtranslator
        module Writers
            module Html

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

                    def writeHtml(hDItem)

                        # domain member - common name
                        s = hDItem[:itemName]
                        if !s.nil?
                            @html.em('Common name: ')
                            @html.text!(s)
                            @html.br
                        end

                        # domain member - value
                        s = hDItem[:itemValue]
                        if !s.nil?
                            @html.em('Domain value: ')
                            @html.text!(s)
                            @html.br
                        end

                        # domain member - definition
                        s = hDItem[:itemDefinition]
                        if !s.nil?
                            @html.em('Definition: ')
                            @html.section(:class=>'block') do
                                @html.text!(s)
                            end
                        end


                    end # writeHtml

                end # class

            end
        end
    end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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