Actions
Feature #2984
closedstring split with capitalize
Description
=begin
It would be awesome if string had a method to perform this action:
string.split(' ').each{ |s| s.capitalize! }.to_s
=end
Updated by naruse (Yui NARUSE) almost 15 years ago
=begin
try string.gsub(/\w+/){$&.capitalize}
You still want another method?
=end
Updated by murphy (Kornelius Kalnbach) almost 15 years ago
=begin
It has: http://www.ruby-doc.org/core/classes/String.html#M000799
=end
Updated by murphy (Kornelius Kalnbach) almost 15 years ago
=begin
Oh, I'm sorry...you want String#titleize: http://railsapi.com/doc/rails-v2.3.5/classes/ActiveSupport/Inflector.html#M002755
=end
Updated by mame (Yusuke Endoh) over 14 years ago
- 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
Updated by znz (Kazuhiro NISHIYAMA) over 14 years ago
- Category set to core
- Status changed from Open to Feedback
=begin
=end
Updated by znz (Kazuhiro NISHIYAMA) over 14 years ago
- Target version changed from 1.9.2 to 2.0.0
=begin
=end
Updated by mame (Yusuke Endoh) over 14 years ago
- Status changed from Feedback to Rejected
=begin
=end
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0