зеркало из https://github.com/github/ruby.git
Родитель
b8247a1669
Коммит
4813443837
|
@ -155,7 +155,7 @@ Ruby has three types of visibility. The default is +public+. A public method
|
|||
may be called from any other object.
|
||||
|
||||
The second visibility is +protected+. When calling a protected method the
|
||||
receiver must inherit the Class or Module which defines the method. Otherwise a
|
||||
sender must inherit the Class or Module which defines the method. Otherwise a
|
||||
NoMethodError will be raised.
|
||||
|
||||
Protected visibility is most frequently used to define <code>==</code> and
|
||||
|
|
Загрузка…
Ссылка в новой задаче