Feature #2984
closed
string split with capitalize
Added by pedromfs (Pedro Santos) over 15 years ago.
Updated over 14 years ago.
Description
=begin
It would be awesome if string had a method to perform this action:
string.split(' ').each{ |s| s.capitalize! }.to_s
=end
=begin
try string.gsub(/\w+/){$&.capitalize}
You still want another method?
=end
- Assignee set to mame (Yusuke Endoh)
- Target version set to 1.9.2
=begin
Hi,
Pedro, do you still want the method?
I'll close the ticket unless you answer to suggestions by Naruse
and Kornelius.
--
Yusuke Endoh mame@tsg.ne.jp
=end
- Category set to core
- Status changed from Open to Feedback
- Target version changed from 1.9.2 to 2.0.0
- Status changed from Feedback to Rejected
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0Like0Like0