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:
parent
1de242de0f
commit
2683171994
2 changed files with 2 additions and 2 deletions
2
NEWS
2
NEWS
|
@ -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)
|
||||
|
|
|
@ -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>.
|
||||
|
||||
|
|
Loading…
Reference in a new issue