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
Enhanced RDoc for Enumerable#slice_before #4932
Conversation
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.
Thanks for working on this. Please see requested changes.
enum.c
Outdated
|
||
* The result enumerator yields the chunked elements as an array. | ||
* So +each+ method can be called as follows: | ||
* Returns an Enumerator. |
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 think we can remove this line. It's obvious from the call-seq.
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.
Done.
enum.c
Outdated
* [1, 2, 3, 4, 5] | ||
* [6, 7, 8, 9, 10, 11, 12, 13, 14, 15] | ||
* | ||
* Example with an array and string pattern: |
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 don't think we need 4 examples of pattern argument usage, as they are more of an example of differences in ===
behavior than slice_before
behavior. A single example should suffice, pick your favorite.
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.
Done.
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.
Looks good!
No description provided.