lib/spout/commands/importer.rb
# Converts ALL-CAPS display names to title case
# Ex: BODY MASS INDEX changes to Body Mass Index
# Ex: Patient ID stays the same as Patient ID
Converts ALL-CAPS display names to title case
Ex: BODY MASS INDEX changes to Body Mass Index
Ex: Patient ID stays the same as Patient ID
Converts ALL - CAPS display names to title case Ex : BODY MASS INDEX changes to Body Mass Index Ex : Patient ID stays the same as Patient ID
def tenderize(text)
        return text if @preserve_case
        if /[a-z]/ =~ text
          text
        else
          text.downcase.gsub(/\b\w/) { $&.upcase }
        end
      end
def tenderize ( text ) return text if @preserve_case if / [a-z] / =~ text text else text . downcase . gsub ( / \b \w / ) { $& . upcase } end end
Converts ALL-CAPS display names to title case
Ex: BODY MASS INDEX changes to Body Mass Index
Ex: Patient ID stays the same as Patient ID
Converts ALL - CAPS display names to title case Ex : BODY MASS INDEX changes to Body Mass Index Ex : Patient ID stays the same as Patient ID
text
<not_specific>