-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOC] Enhanced RDoc for String #5635
Conversation
Second commit adds #squeeze and #squeeze!, which I had not realized use character selectors. |
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
- String#tr(selector, replacements): returns a new string. | ||
- String#tr!(selector, replacements): returns +self+. | ||
- String#tr!(selector, replacements): returns +self+ or +nil+. | ||
- String#tr_s(selector, replacements): returns a new string. | ||
- String#tr_s!(selector, replacements): returns +self+. | ||
- String#tr_s!(selector, replacements): returns +self+ or +nil+. | ||
- String#count(*selectors): returns the count of the specified characters. | ||
- String#delete(*selectors): returns a new string. | ||
- String#delete!(*selectors): returns +self+. | ||
- String#count(*selectors): counts specified characters. | ||
- String#delete!(*selectors): returns +self+ or +nil+. | ||
- String#squeeze(*selectors): returns a new string. | ||
- String#squeeze!(*selectors): returns +self+ or +nil+. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these be in alphabetical order?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've grouped those with argument replacements first, then those without.
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
… --update While generate_index did clean up temporary directory, when running with --update flag, that did not happen and the temporary directory was left behind. This commit fixes that and modifies tests in order to make sure this is not reintroduced later on. Fixes #5635. rubygems/rubygems@9fa34dc329
Treats:
Adds section "Multiple Character Selectors" to doc/character_selectors.rdoc.