Method: Kennel::Utils.title_case
- Defined in:
- lib/kennel/utils.rb
.title_case(string) ⇒ Object
for child projects, not used internally
27 28 29 |
# File 'lib/kennel/utils.rb', line 27 def title_case(string) string.split(/[\s_]/).map(&:capitalize) * " " end |