Project

General

Profile

Feature #6444

alias for String#index

Added by bot pena over 4 years ago. Updated almost 4 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
[ruby-core:45105]

Description

would be nice if there is an alias for String#index

possible names:

String#find
String#search
String#pos

Associated revisions

Revision 11263
Added by Akinori MUSHA almost 10 years ago

  • lib/set.rb (Set#): Fix XOR operation against a container that holds duplicate values. [issue: #6444]

Revision 11263
Added by Akinori MUSHA almost 10 years ago

  • lib/set.rb (Set#): Fix XOR operation against a container that holds duplicate values. [issue: #6444]

Revision 11263
Added by Akinori MUSHA almost 10 years ago

  • lib/set.rb (Set#): Fix XOR operation against a container that holds duplicate values. [issue: #6444]

History

#1 [ruby-core:45117] Updated by Yui NARUSE over 4 years ago

  • Status changed from Open to Feedback

Why do you want?

#2 [ruby-core:45146] Updated by Robert A. Heiler over 4 years ago

#find already exists in Enumerable. I don't think it is a good choice.
#pos is not really a proper english word. You probably meant #position.

You can however always extend class String on your own and add these methods.

#3 [ruby-core:48277] Updated by Yutaka HARA almost 4 years ago

  • Target version changed from 2.0.0 to next minor

Also available in: Atom PDF