From: Robert Klemme Date: 2005-09-28T01:51:42+09:00 Subject: Re: Object private methods Paolino wrote: > Hello > > I noticed that Object private methods are available everywhere. > This I noticed exploring 'main' instance defining a method > > Can I have some explanation on this form of globalizing ? Dunno what exactly you are looking for... Typically these methods reside in Kernel and are defined like this: module Kernel private def foo() "something" end end This works since all objects eventually inherit Kernel: 18:45:30 [~]: ruby -e 'p String.ancestors' [String, Enumerable, Comparable, Object, Kernel] What else do you want to know? Kind regards robert