Sha256: 1064d72c8ab8691168bf69c42e967981d53d1479c9d232c49bf6b5e7a465d340
Contents?: true
Size: 1.81 KB
Versions: 76
Compression:
Stored size: 1.81 KB
Contents
# HTML writer # duration # History: # Stan Smith 2017-03-27 original script module ADIWG module Mdtranslator module Writers module Html class Html_Duration def initialize(html) @html = html end def writeHtml(hDuration) # duration - years unless hDuration[:years] == 0 @html.em('Years: ') @html.text!(hDuration[:years].to_s) @html.br end # duration - months unless hDuration[:months] == 0 @html.em('Months: ') @html.text!(hDuration[:months].to_s) @html.br end # duration - days unless hDuration[:days] == 0 @html.em('Days: ') @html.text!(hDuration[:days].to_s) @html.br end # duration - hours unless hDuration[:hours] == 0 @html.em('Hours: ') @html.text!(hDuration[:hours].to_s) @html.br end # duration - minutes unless hDuration[:minutes] == 0 @html.em('Minutes: ') @html.text!(hDuration[:minutes].to_s) @html.br end # duration - seconds unless hDuration[:seconds] == 0 @html.em('Seconds: ') @html.text!(hDuration[:seconds].to_s) @html.br end end # writeHtml end # Html_Duration end end end end
Version data entries
76 entries across 76 versions & 1 rubygems