Actions
Feature #6444
closedalias for String#index
Status:
Feedback
Assignee:
-
Target version:
-
Description
would be nice if there is an alias for String#index
possible names:
String#find
String#search
String#pos
Updated by naruse (Yui NARUSE) over 12 years ago
- Status changed from Open to Feedback
Why do you want?
Updated by shevegen (Robert A. Heiler) over 12 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.
Updated by yhara (Yutaka HARA) about 12 years ago
- Target version changed from 2.0.0 to 2.6
Actions
Like0
Like0Like0Like0Like0