Class: ADIWG::Mdtranslator::Writers::Simple_html::Html_BearingDistanceResolution
- Inherits:
-
Object
- Object
- ADIWG::Mdtranslator::Writers::Simple_html::Html_BearingDistanceResolution
- Defined in:
- lib/adiwg/mdtranslator/writers/simple_html/sections/html_bearingDistanceResolution.rb
Instance Method Summary collapse
-
#initialize(html) ⇒ Html_BearingDistanceResolution
constructor
A new instance of Html_BearingDistanceResolution.
- #writeHtml(hBearRes) ⇒ Object
Constructor Details
#initialize(html) ⇒ Html_BearingDistanceResolution
14 15 16 |
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_bearingDistanceResolution.rb', line 14 def initialize(html) @html = html end |
Instance Method Details
#writeHtml(hBearRes) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_bearingDistanceResolution.rb', line 18 def writeHtml(hBearRes) # bearing distance resolution - distance resolution unless hBearRes[:distanceResolution].nil? @html.em('Distance Resolution: ') @html.text!(hBearRes[:distanceResolution].to_s) @html.br end # bearing distance resolution - distance unit of measure unless hBearRes[:distanceUnitOfMeasure].nil? @html.em('Distance Unit of Measure: ') @html.text!(hBearRes[:distanceUnitOfMeasure]) @html.br end # bearing distance resolution - bearing resolution unless hBearRes[:bearingResolution].nil? @html.em('Bearing Resolution: ') @html.text!(hBearRes[:bearingResolution].to_s) @html.br end # bearing distance resolution - bearing unit of measure unless hBearRes[:bearingUnitOfMeasure].nil? @html.em('Bearing Unit of Measure: ') @html.text!(hBearRes[:bearingUnitOfMeasure]) @html.br end # bearing distance resolution - bearing reference direction unless hBearRes[:bearingReferenceDirection].nil? @html.em('Bearing Reference Direction: ') @html.text!(hBearRes[:bearingReferenceDirection]) @html.br end # bearing distance resolution - bearing reference meridian unless hBearRes[:bearingReferenceMeridian].nil? @html.em('Bearing Reference Meridian: ') @html.text!(hBearRes[:bearingReferenceMeridian]) @html.br end end |