1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] DOT is not a part of a receiver [ci skip]

[Feature #11297] [Feature #16123]
This commit is contained in:
Nobuyoshi Nakada 2019-09-20 15:50:42 +09:00
parent 1de242de0f
commit 2683171994
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60
2 changed files with 2 additions and 2 deletions

2
NEWS
View file

@ -77,7 +77,7 @@ sufficient information, see the ChangeLog file or Redmine
# .bar
.baz # => foo.baz
* Calling a private method with a literal <code>self.</code> as the receiver
* Calling a private method with a literal <code>self</code> as the receiver
is now allowed. [Feature #11297] [Feature #16123]
=== Core classes updates (outstanding ones only)

View file

@ -92,7 +92,7 @@ Now any reference to +big_calculation+ is considered a local variable and will
be cached. To call the method, use <code>self.big_calculation</code>.
You can force a method call by using empty argument parentheses as shown above
or by using an explicit receiver like <code>self.</code>. Using an explicit
or by using an explicit receiver like <code>self</code>. Using an explicit
receiver may raise a NameError if the method's visibility is not public or the
receiver is the literal <code>self</code>.