diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-09-20 02:32:50 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-09-20 02:40:59 +0900 |
commit | b80df6e8e0a59207545822d92c0a4f78cd64ef5e (patch) | |
tree | c1c999c7aa61e39c8e4258181ad3263405625146 /doc/syntax/assignment.rdoc | |
parent | e6378cdcd8246697be652b74442f9c07503e0ba6 (diff) |
Update NEWS and documents [ci skip]
[Feature #11297] [Feature #16123]
Diffstat (limited to 'doc/syntax/assignment.rdoc')
-rw-r--r-- | doc/syntax/assignment.rdoc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/syntax/assignment.rdoc b/doc/syntax/assignment.rdoc index 7361b7d3bd..91d5d5bba4 100644 --- a/doc/syntax/assignment.rdoc +++ b/doc/syntax/assignment.rdoc @@ -93,7 +93,8 @@ 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 -receiver may raise a NameError if the method's visibility is not public. +receiver may raise a NameError if the method's visibility is not public or the +receiver is the literal <code>self</code>. Another commonly confusing case is when using a modifier +if+: |