>>>>> "J" == Joel VanderWerf <vjoel / path.berkeley.edu> writes:

J> Why can't a class method call a protected instance method, as in the 
J> following example?

 Try this

J> class Foo
J>   def Foo.class_meth foo
J>     foo.prot_meth

       foo.send :prot_meth

J>   end
  
J>   protected
J>   def prot_meth
J>     puts 'foo'
J>   end
J> end

J> Foo.class_meth Foo.new 
J> # ==> NameError: protected method `prot_meth' called ...


Guy Decoux