From: "Brian Schröder" Date: 2005-03-02T22:57:12+09:00 Subject: Re: Modules and methods On Wed, 2 Mar 2005 22:32:14 +0900, Javier Valencia wrote: > I see that with instance methods happens the same: > > module MyMod > > def mymethod > puts "hello" > priv_method > end > > private > def priv_method > puts "world" > end > > end > > include MyMod > > priv_method > If I understand it correctly, then including MyMod into Object, makes priv_method a private method of Object. So when you call priv_method inside of object it can access it. If you try to do include MyMod self.priv_method it will throw an error, because priv_method is private. Maybe it all can become clearer if you include MyMod into another class than Object because you are doing things implicitly here. HTH, Brian -- Brian Schr�der http://ruby.brian-schroeder.de/