Feature #2984

string split with capitalize

Added by Pedro Santos almost 5 years ago. Updated almost 4 years ago.

[ruby-core:28744]
Status:Rejected
Priority:Low
Assignee:Yusuke Endoh

Description

=begin
It would be awesome if string had a method to perform this action:

string.split(' ').each{ |s| s.capitalize! }.to_s
=end

History

#1 Updated by Yui NARUSE almost 5 years ago

=begin
try string.gsub(/\w+/){$&.capitalize}

You still want another method?
=end

#4 Updated by Yusuke Endoh almost 5 years ago

  • Assignee set to 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

#5 Updated by Kazuhiro NISHIYAMA almost 5 years ago

  • Category set to core
  • Status changed from Open to Feedback

=begin

=end

#6 Updated by Kazuhiro NISHIYAMA almost 5 years ago

  • Target version changed from 1.9.2 to 2.0.0

=begin

=end

#7 Updated by Yusuke Endoh almost 5 years ago

  • Status changed from Feedback to Rejected

=begin

=end

Also available in: Atom PDF