class ADIWG::Mdtranslator::Writers::Html::Html_SecurityConstraint

Public Class Methods

new(html) click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb, line 15
def initialize(html)
   @html = html
end

Public Instance Methods

writeHtml(hSecCon) click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb, line 19
def writeHtml(hSecCon)

   # security constraint - classification code {classification} (required)
   unless hSecCon[:classCode].nil?
      @html.em('Classification: ')
      @html.text!(hSecCon[:classCode])
      @html.br
   end

   # security constraint - classification system
   unless hSecCon[:classSystem].nil?
      @html.em('Classification System: ')
      @html.text!(hSecCon[:classSystem])
      @html.br
   end

   # security constraint - user note
   unless hSecCon[:userNote].nil?
      @html.em('User Note:')
      @html.section(:class => 'block') do
         @html.text!(hSecCon[:userNote])
      end
   end

   # security constraint - handling instructions
   unless hSecCon[:handling].nil?
      @html.em('handling Instructions:')
      @html.section(:class => 'block') do
         @html.text!(hSecCon[:handling])
      end
   end

end