Ruby does supply the
private_class_methodmethod in order to declare a class method as private; there is no equivalent for protected methods though.
How exactly do you expect
protected_class_methodto behave? There is no such method in ruby on purpose: it makes no sense to declare protected methods on the singleton class.