Method: BCL::BaseXml#tc

Defined in:
lib/bcl/base_xml.rb

#tc(input) ⇒ Object

return the title case of the string



100
101
102
103
104
105
106
107
# File 'lib/bcl/base_xml.rb', line 100

def tc(input)
  val = input.gsub(/\b\w/) { $&.upcase }
  if val.casecmp('energyplus').zero?
    val = 'EnergyPlus'
  end

  val
end