Skip to content
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

Merged
merged 6 commits into from
Mar 10, 2022
Merged

[DOC] Enhanced RDoc for String #5635

merged 6 commits into from
Mar 10, 2022

Conversation

BurdetteLamar
Copy link
Member

@BurdetteLamar BurdetteLamar commented Mar 9, 2022

Treats:

  • #count
  • #delete
  • #delete!
  • #squeeze
  • #squeeze!

Adds section "Multiple Character Selectors" to doc/character_selectors.rdoc.

@BurdetteLamar BurdetteLamar added the Documentation Improvements to documentation. label Mar 9, 2022
@BurdetteLamar
Copy link
Member Author

Second commit adds #squeeze and #squeeze!, which I had not realized use character selectors.

string.c Outdated Show resolved Hide resolved
string.c Outdated Show resolved Hide resolved
BurdetteLamar and others added 2 commits March 9, 2022 15:41
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
Comment on lines 8 to +16
- 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+.
Copy link
Member

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?

Copy link
Member Author

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.

doc/character_selectors.rdoc Outdated Show resolved Hide resolved
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
@BurdetteLamar BurdetteLamar merged commit 561dda9 into ruby:master Mar 10, 2022
matzbot pushed a commit that referenced this pull request Jun 26, 2022
… --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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements to documentation.
2 participants