Skip to content

Commit 7f40b61

Browse files
authored
Fix 2.7 self.<private_method> doc link (#52)
1 parent 8daa441 commit 7f40b61

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

_src/evolution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ This section lists changes in how methods are defined and invoked, as well as ne
321321
(1..50).grep(Prime.method(:prime?))
322322
#=> [2, 3, 5, 7, 11, 13, 17, 19, 23, 29]
323323
```
324-
* [2.7](2.7.md#selfprivate_method) `self.<private_method>` [is allowed](https://ruby-doc.org/core-2.7.0/syntax/modules_and_classes_rdoc.html#label-Visibility)
324+
* [2.7](2.7.md#selfprivate_method) `self.<private_method>` [is allowed](https://ruby-doc.org/core-2.7.0/doc/syntax/modules_and_classes_rdoc.html#label-Visibility)
325325
* [2.7](2.7.md#keyword-argument-related-changes) **[Big Keyword Argument Separation](https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/):** some incompatibilities were introduced by need, so the distinction of keyword arguments and hashes in method arguments was more clear, handling numerous irritating edge cases.
326326
* [2.7](2.7.md#keyword-argument-related-changes) Introduce argument forwarding with `method(...)` syntax. As after the keyword argument separation "delegate everything" syntax became more complicated (you need to use and pass `(*args, **kwargs)`, because just `*args` wouldn't always work), simplified syntax was introduced:
327327
```ruby

evolution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ This section lists changes in how methods are defined and invoked, as well as ne
321321
(1..50).grep(Prime.method(:prime?))
322322
#=> [2, 3, 5, 7, 11, 13, 17, 19, 23, 29]
323323
```
324-
* <span class="ruby-version">[2.7](2.7.md#selfprivate_method)</span> `self.<private_method>` <a class="ruby-doc" href="https://ruby-doc.org/core-2.7.0/syntax/modules_and_classes_rdoc.html#label-Visibility">is allowed</a>
324+
* <span class="ruby-version">[2.7](2.7.md#selfprivate_method)</span> `self.<private_method>` <a class="ruby-doc" href="https://ruby-doc.org/core-2.7.0/syntax/doc/modules_and_classes_rdoc.html#label-Visibility">is allowed</a>
325325
* <span class="ruby-version">[2.7](2.7.md#keyword-argument-related-changes)</span> **[Big Keyword Argument Separation](https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/):** some incompatibilities were introduced by need, so the distinction of keyword arguments and hashes in method arguments was more clear, handling numerous irritating edge cases.
326326
* <span class="ruby-version">[2.7](2.7.md#keyword-argument-related-changes)</span> Introduce argument forwarding with `method(...)` syntax. As after the keyword argument separation "delegate everything" syntax became more complicated (you need to use and pass `(*args, **kwargs)`, because just `*args` wouldn't always work), simplified syntax was introduced:
327327
```ruby

0 commit comments

Comments
 (0)