From: Michael Edgar Date: 2011-07-24T09:06:53+09:00 Subject: Re: Top level function definition gets in Kernel module? --Apple-Mail=_0CA8D26B-930F-432E-9E74-06CD0C1EB1BF Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On Jul 23, 2011, at 7:23 PM, 7stud -- wrote: >> The top-level scope creates private methods by default. >> > > I know that. Then why did you add the "test_fun" private method to Object, then print Object's public instance methods starting with t? >> Object.private_instance_methods is what you want. >> > > I don't want anything. If your printout had nothing to do with the "test_fun" method, then all it seemed to illustrate was that different versions of Ruby provide different methods. Was there something else to be gleaned that I'm missing? Michael Edgar adgar@carboni.ca http://carboni.ca/ --Apple-Mail=_0CA8D26B-930F-432E-9E74-06CD0C1EB1BF--