Sha256: 987324cdbc8edd98879c7ecb4f7f312939fe96ea927917c45de3c58adce32edd

Contents?: true

Size: 1.23 KB

Versions: 20

Compression:

Stored size: 1.23 KB

Contents

# HTML writer
# resolution

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

module ADIWG
    module Mdtranslator
        module Writers
            module Html

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

                    def writeHtml(hSpaceRef)

                        s = hSpaceRef[:equivalentScale]
                        if !s.nil?
                            @html.em('Equivalent scale: ')
                            @html.text!(s.to_s)
                            @html.br
                        end

                        # resolution - distance
                        s = hSpaceRef[:distance]
                        if !s.nil?
                            @html.em('Distance: ')
                            @html.text!(s.to_s)
                            s = hSpaceRef[:distanceUOM]
                            if !s.nil?
                                @html.em('Unit of measure: ')
                                @html.text!(s)
                            end
                            @html.br
                        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_resolution.rb
adiwg-mdtranslator-1.4.0.beta14 lib/adiwg/mdtranslator/writers/html/sections/html_resolution.rb
adiwg-mdtranslator-1.4.0.beta13 lib/adiwg/mdtranslator/writers/html/sections/html_resolution.rb
adiwg-mdtranslator-1.4.0.beta12 lib/adiwg/mdtranslator/writers/html/sections/html_resolution.rb
adiwg-mdtranslator-1.4.0.beta11 lib/adiwg/mdtranslator/writers/html/sections/html_resolution.rb
adiwg-mdtranslator-1.4.0.beta10 lib/adiwg/mdtranslator/writers/html/sections/html_resolution.rb
adiwg-mdtranslator-1.4.0.beta9 lib/adiwg/mdtranslator/writers/html/sections/html_resolution.rb
adiwg-mdtranslator-1.4.0.beta8 lib/adiwg/mdtranslator/writers/html/sections/html_resolution.rb
adiwg-mdtranslator-1.4.0.beta7 lib/adiwg/mdtranslator/writers/html/sections/html_resolution.rb
adiwg-mdtranslator-1.4.0.beta6 lib/adiwg/mdtranslator/writers/html/sections/html_resolution.rb
adiwg-mdtranslator-1.4.0.beta5 lib/adiwg/mdtranslator/writers/html/sections/html_resolution.rb
adiwg-mdtranslator-1.4.0.beta4 lib/adiwg/mdtranslator/writers/html/sections/html_resolution.rb
adiwg-mdtranslator-1.4.0.beta3 lib/adiwg/mdtranslator/writers/html/sections/html_resolution.rb
adiwg-mdtranslator-1.4.0.beta2 lib/adiwg/mdtranslator/writers/html/sections/html_resolution.rb
adiwg-mdtranslator-1.4.0.beta1 lib/adiwg/mdtranslator/writers/html/sections/html_resolution.rb
adiwg-mdtranslator-1.3.0 lib/adiwg/mdtranslator/writers/html/sections/html_resolution.rb
adiwg-mdtranslator-1.2.1 lib/adiwg/mdtranslator/writers/html/sections/html_resolution.rb
adiwg-mdtranslator-1.2.0 lib/adiwg/mdtranslator/writers/html/sections/html_resolution.rb
adiwg-mdtranslator-1.1.1 lib/adiwg/mdtranslator/writers/html/sections/html_resolution.rb
adiwg-mdtranslator-1.1.0 lib/adiwg/mdtranslator/writers/html/sections/html_resolution.rb