Project

General

Profile

Actions

Feature #2984

closed

string split with capitalize

Added by pedromfs (Pedro Santos) over 14 years ago. Updated over 13 years ago.

Status:
Rejected
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

Actions #1

Updated by naruse (Yui NARUSE) over 14 years ago

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

You still want another method?
=end

Actions #4

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
=end

Actions #5

Updated by znz (Kazuhiro NISHIYAMA) over 14 years ago

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

=begin

=end

Actions #6

Updated by znz (Kazuhiro NISHIYAMA) over 14 years ago

  • Target version changed from 1.9.2 to 2.0.0

=begin

=end

Actions #7

Updated by mame (Yusuke Endoh) over 14 years ago

  • Status changed from Feedback to Rejected

=begin

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0