class Child <Parent
# Invoke static() here
My question is about invoking the method static() from within foo, in
I found - by trial and error - that I can do it by
but I can not do it by simply calling
(I get an error message that ‘static’ is not found), and I wonder, why.
As far I understand, Ruby has the somewhat unusual approach to private
methods, by specifying that “a private method can be called only without
Well - ‘Parent.static’ DOES have an explicit receiver, yet can be
called, and writing just ‘static’ does NOT have an explicit receiver,
but can not be called.
Could someone kindly help me out of this confusion?