From: Christoph Rippel Date: 2000-12-21T03:32:53+09:00 Subject: [ruby-talk:7784] Re: Some private_instance_method are not private_methods? > -----Original Message----- > From: Yukihiro Matsumoto [mailto:matz@zetabits.com] > Sent: Wednesday, December 20, 2000 08:18 AM > To: ruby-talk ML > Subject: [ruby-talk:7774] Re: Some private_instance_method are not > private_methods? > > > Hi, > > In message "[ruby-talk:7766] Some private_instance_method are not > private_methods?" > on 00/12/20, "Christoph Rippel" writes: > > |I am still trying to get a full grasp of the Modulo concept - running > |------------------------- > |def diff(aModule) > | aModule.private_instance_methods- aModule.private_methods > |end > > You are subtracting set of aModule's private methods from set of > private instance methods of an instance of a class which includes > aModule. The result would be nonsense. Get it? > > matz. Bingo, Class.ancestors # [Class, Module, Object, Kernel] the problem is that Andy & Dave's book states that Class is a sub-class of Module which wrong (they have to fix this in the next edition). Christoph