阅读背景:

Ruby类用静态方法调用私有方法?

来源:互联网 

I have a class with a number of static methods. Each one has to call a common method, but I'm trying not to expose this latter method. Making it private would only allow access from an own instance of the class? Protected does not seem like it would solve the problem here either.I have a class with a number of static methods.




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: