1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix language describing protected methods

Fixes [Bug #18887]
This commit is contained in:
Jeremy Evans 2022-07-14 13:28:58 -07:00
parent b8247a1669
commit 4813443837

View file

@ -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