Ruby
Invalid call to protected/private method
Warning
New
Last modified: 03 December 2024Reports invalid calls to protected/private methods.
You can call a protected method using an implicit or explicit receiver of the correct type.
You can call a private method only with an implicit receiver (except for self
setter methods, for example, self.foo=
).
You can call both protected and private methods only from the context of a method handler.
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
InvalidCallToProtectedPrivateMethod
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Ruby, 243.23135 |
Thanks for your feedback!
Was this page helpful?