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 |
# File 'lib/wolf_core/utils/string_utils.rb', line 3 def camelcase_to_spaces(str) str.gsub(/([A-Z])/, ' \1').strip.downcase.capitalize end |