class ADIWG::Mdtranslator::Writers::Html::Html_GeologicAge
Public Class Methods
new(html)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_geologicAge.rb, line 16 def initialize(html) @html = html end
Public Instance Methods
writeHtml(hGeoAge)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_geologicAge.rb, line 20 def writeHtml(hGeoAge) # classes used citationClass = Html_Citation.new(@html) # geologic age - age time scale unless hGeoAge[:ageTimeScale].nil? @html.em('Age Time Scale: ') @html.text!(hGeoAge[:ageTimeScale]) @html.br end # geologic age - age estimate unless hGeoAge[:ageEstimate].nil? @html.em('Age Estimate: ') @html.text!(hGeoAge[:ageEstimate]) @html.br end # geologic age - age uncertainty unless hGeoAge[:ageUncertainty].nil? @html.em('Age Uncertainty: ') @html.section(:class => 'block') do @html.text!(hGeoAge[:ageUncertainty]) end end # geologic age - age explanation unless hGeoAge[:ageExplanation].nil? @html.em('Age Determination Methodology: ') @html.section(:class => 'block') do @html.text!(hGeoAge[:ageExplanation]) end end # geologic age - age references [] {citation} hGeoAge[:ageReferences].each do |hCitation| @html.details do @html.summary('Age Reference', {'class' => 'h5'}) @html.section(:class => 'block') do citationClass.writeHtml(hCitation) end end end end