class ADIWG::Mdtranslator::Writers::Html::Html_Processing
Public Class Methods
new(html)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_processing.rb, line 18 def initialize(html) @html = html end
Public Instance Methods
writeHtml(hProcessing)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_processing.rb, line 22 def writeHtml(hProcessing) # classes used identifierClass = Html_Identifier.new(@html) citationClass = Html_Citation.new(@html) algorithmClass = Html_Algorithm.new(@html) # processing - procedure description unless hProcessing[:procedureDescription].nil? @html.em(' Procedure Description: ') @html.text!(hProcessing[:procedureDescription]) @html.br end # processing - identifier {identifier} unless hProcessing[:identifier].empty? @html.details do @html.summary('Identifier', {'class' => 'h5'}) @html.section(:class => 'block') do identifierClass.writeHtml(hProcessing[:identifier]) end end end # processing - software reference {citation} unless hProcessing[:softwareReference].empty? @html.details do @html.summary('Software Reference', {'class' => 'h5'}) @html.section(:class => 'block') do citationClass.writeHtml(hProcessing[:softwareReference]) end end end # processing - runtime parameters unless hProcessing[:runtimeParameters].nil? @html.em(' Runtime Parameters: ') @html.text!(hProcessing[:runtimeParameters]) @html.br end # processing - documentation [] {citation} hProcessing[:documentation].each do |hCitation| @html.details do @html.summary('Documentation', {'class' => 'h5'}) @html.section(:class => 'block') do citationClass.writeHtml(hCitation) end end end # processing - algorithm [] {algorithm} hProcessing[:algorithms].each do |hAlgorithm| @html.details do @html.summary('Algorithm', {'class' => 'h5'}) @html.section(:class => 'block') do algorithmClass.writeHtml(hAlgorithm) end end end end