Module: WolfCore::StringUtils

Defined in:
lib/wolf_core/utils/string_utils.rb

Instance Method Summary collapse

Instance Method Details

#camelcase_to_spaces(str) ⇒ Object



3
4
5
6
# File 'lib/wolf_core/utils/string_utils.rb', line 3

def camelcase_to_spaces(str)
  return if str.nil?
  str.gsub(/([A-Z])/, ' \1').strip.downcase.capitalize
end