class ADIWG::Mdtranslator::Writers::Html::Html_EntityIndex
Public Class Methods
new(html)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_entityIndex.rb, line 15 def initialize(html) @html = html end
Public Instance Methods
writeHtml(hIndex)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_entityIndex.rb, line 19 def writeHtml(hIndex) # entity index - name unless hIndex[:indexCode].nil? @html.em('Code: ') @html.text!(hIndex[:indexCode]) @html.br end # entity index - duplicate {Boolean} @html.em('Allow Duplicates: ') @html.text!(hIndex[:duplicate].to_s) @html.br # entity index - attribute names unless hIndex[:attributeNames].empty? @html.em('Index Attribute(s):') @html.section(:class => 'block') do hIndex[:attributeNames].each do |attribute| @html.text!(attribute) @html.br end end end end