ruby-changes:57835
From: Nobuyoshi <ko1@a...>
Date: Fri, 20 Sep 2019 16:46:26 +0900 (JST)
Subject: [ruby-changes:57835] 2683171994 (master): [DOC] DOT is not a part of a receiver [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=2683171994 From 26831719948f4ab6fdffdfcd8083be23aa300436 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 20 Sep 2019 15:50:42 +0900 Subject: [DOC] DOT is not a part of a receiver [ci skip] [Feature #11297] [Feature #16123] diff --git a/NEWS b/NEWS index a4d7817..70c5ff6 100644 --- a/NEWS +++ b/NEWS @@ -77,7 +77,7 @@ sufficient information, see the ChangeLog file or Redmine https://github.com/ruby/ruby/blob/trunk/NEWS#L77 # .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) diff --git a/doc/syntax/assignment.rdoc b/doc/syntax/assignment.rdoc index 91d5d5b..a1806e4 100644 --- a/doc/syntax/assignment.rdoc +++ b/doc/syntax/assignment.rdoc @@ -92,7 +92,7 @@ Now any reference to +big_calculation+ is considered a local variable and will https://github.com/ruby/ruby/blob/trunk/doc/syntax/assignment.rdoc#L92 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>. -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/