lib/adiwg/mdtranslator/writers/html/sections/html_attribute.rb in adiwg-mdtranslator-2.18.0rc1 vs lib/adiwg/mdtranslator/writers/html/sections/html_attribute.rb in adiwg-mdtranslator-2.18.0rc2
- old
+ new
@@ -3,10 +3,11 @@
# History:
# Stan Smith 2017-04-02 original script
require_relative 'html_identifier'
+require_relative 'html_rangeElementDescription'
module ADIWG
module Mdtranslator
module Writers
module Html
@@ -18,10 +19,11 @@
end
def writeHtml(hAttribute)
# classes used
identifierClass = Html_Identifier.new(@html)
+ rangeElementDescriptionClass = Html_RangeElementDescription.new(@html)
# attribute - sequence identifier
unless hAttribute[:sequenceIdentifier].nil?
@html.em('Sequence Identifier: ')
@html.text!(hAttribute[:sequenceIdentifier])
@@ -112,9 +114,19 @@
# attribute - bits per value
unless hAttribute[:bitsPerValue].nil?
@html.em('Bits Per Value: ')
@html.text!(hAttribute[:bitsPerValue].to_s)
@html.br
+ end
+
+ # attribute - range element description
+ hAttribute[:rangeElementDescription].each do |red|
+ @html.details do
+ @html.summary('Range Element Description', 'class' => 'h5')
+ @html.section(:class => 'block') do
+ rangeElementDescriptionClass.writeHtml(red)
+ end
+ end
end
# attribute - bound minimum
unless hAttribute[:boundMinimum].nil?
@html.em('Bound Minimum: ')