diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | doc/syntax/assignment.rdoc | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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) diff --git a/doc/syntax/assignment.rdoc b/doc/syntax/assignment.rdoc index 91d5d5bba4..a1806e4c48 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 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>. |