Sha256: d61b817bb0eba632ad5412b689e48786d5343649b50d476c5bd391d8ac6597b4
Contents?: true
Size: 1.79 KB
Versions: 20
Compression:
Stored size: 1.79 KB
Contents
# HTML writer # online resource # History: # Stan Smith 2015-03-24 original script module ADIWG module Mdtranslator module Writers module Html class MdHtmlOnlineResource def initialize(html) @html = html end def writeHtml(hOlRes) # online resource - URI s = hOlRes[:olResURI] @html.em('URI: ') @html.section(:class=>'block') do @html.a(s, 'href'=>s) end # online resource - name s = hOlRes[:olResName] if s @html.em('Name: ') @html.text!(s) @html.br end # online resource - description s = hOlRes[:olResDesc] if s @html.em('Description: ') @html.text!(s) @html.br end # online resource - function s1 = hOlRes[:olResFunction] if s1 @html.em('Function: ') @html.text!(s1) end # online resource - protocol s2 = hOlRes[:olResProtocol] if s2 @html.em('Protocol: ') @html.text!(s2) end end # writeHtml end # class end end end end
Version data entries
20 entries across 20 versions & 1 rubygems