8000 Enhanced RDoc for Enumerable by BurdetteLamar · Pull Request #4473 · ruby/ruby · GitHub
[go: up one dir, main page]

Skip to content

Enhanced RDoc for Enumerable #4473

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

Merged
merged 2 commits into from
May 8, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Enhanced RDoc for Enumerable
  • Loading branch information
BurdetteLamar committed May 7, 2021
commit 7c0936e01ddada752320ed6874f94e9223463c95
8 changes: 4 additions & 4 deletions enum.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ enum_grep0(VALUE obj, VALUE pat, VALUE test)
* With no block given, returns an array containing each element
* for which <tt>pattern === element</tt> is +true+:
*
* a = %w/foo bar car moo/
* a = ['foo', 8000 'bar', 'car', 'moo']
* a.grep(/ar/) # => ["bar", "car"]
* (1..10).grep(3..8) # => [3, 4, 5, 6, 7, 8]
* ['a', 'b', 0, 1].grep(Integer) # => [0, 1]
Expand All @@ -150,7 +150,7 @@ enum_grep0(VALUE obj, VALUE pat, VALUE test)
* calls the block with each matching element and returns an array containing each
* object returned by the block:
*
* a = %w/foo bar car moo/
* a = ['foo', 'bar', 'car', 'moo']
* a.grep(/ar/) {|element| element.upcase } # => ["BAR", "CAR"]
*
* Related: #grep_v.
Expand All @@ -173,7 +173,7 @@ enum_grep(VALUE obj, VALUE pat)
* With no block given, returns an array containing each element
* for which <tt>pattern === element</tt> is +false+:
*
* a = %w/foo bar car moo/
* a = ['foo', 'bar', 'car', 'moo']
* a.grep_v(/ar/) # => ["foo", "moo"]
* (1..10).grep_v(3..8) # => [1, 2, 9, 10]
* ['a', 'b', 0, 1].grep_v(Integer) # => ["a", "b"]
Expand All @@ -182,7 +182,7 @@ enum_grep(VALUE obj, VALUE pat)
* calls the block with each non-matching element and returns an array containing each
* object returned by the block:
*
* a = %w/foo bar car moo/
* a = ['foo', 'bar', 'car', 'moo']
* a.grep_v(/ar/) {|element| element.upcase } # => ["FOO", "MOO"]
*
* Related: #grep.
Expand Down
0