Project

General

Profile

Feature #2984

string split with capitalize

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

Status:
Rejected
Priority:
Normal
Assignee:
[ruby-core:28744]

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 6 years ago

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

You still want another method?
=end

#4 Updated by Yusuke Endoh almost 6 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 6 years ago

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

=begin

=end

#6 Updated by Kazuhiro NISHIYAMA almost 6 years ago

  • Target version changed from 1.9.2 to 2.0.0

=begin

=end

#7 Updated by Yusuke Endoh almost 6 years ago

  • Status changed from Feedback to Rejected

=begin

=end

Also available in: Atom PDF