I\'ve been having this bothering recurring theme; let\'s just say, I have a class which defines an instance method and a protected class method. The instance method must call th
It is forbidden to call private methods with explicit receiver. You either have to use implicit receiver (private_bang
, without self
) or use send
. Please see my another answer for more information.
By the way, the original question is about calling class instance methods from instance methods. Your clarification doesn't include that. But if that's still true, you have to use self.class.send
or make the method public (so that you can use explicit receiver).