Project

General

Profile

Feature #2984

string split with capitalize

Added by pedromfs (Pedro Santos) over 9 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Normal
Target version:
[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 naruse (Yui NARUSE) over 9 years ago

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

You still want another method?
=end

#4

Updated by mame (Yusuke Endoh) over 9 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

#5

Updated by znz (Kazuhiro NISHIYAMA) over 9 years ago

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

=begin

=end

#6

Updated by znz (Kazuhiro NISHIYAMA) over 9 years ago

  • Target version changed from 1.9.2 to 2.0.0

=begin

=end

#7

Updated by mame (Yusuke Endoh) over 9 years ago

  • Status changed from Feedback to Rejected

=begin

=end

Also available in: Atom PDF