module ADIWG::Mdtranslator::Writers::SbJson::Hours

Public Class Methods

build(aHours) click to toggle source
# File lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_hours.rb, line 13
def self.build(aHours)

   hours = ''

   aHours.each do |hour|
      hours += hour + '; '
   end

   # clean off last semicolon
   if hours.length > 2
      hours = hours[0...-2]
   end

   hours

end