I must be missing something about how people do this in Ruby.
If #protected is uncommented we get:
in what : protected method zoop called for Foo:Class (NoMethodError)
Is there a better way to approach protected class methods?
class Foo class << self #protected def zoop "zoop" end end public def what "it is #{self.class.zoop} " end protected end a = Foo.new p a.what # => "it is zoop "
I would like zoop to be protected or private (no calling Foo.zoop ), but so far, I can t seem to find an elegant way.