From: Wes Gamble Date: 2006-04-29T00:31:46+09:00 Subject: Re: Intra-module method calls Sorry, I wasn't clear enough - my question is why does the call to method2 from method1 fail with a undefined method `method2' for X:Module error? Thanks, WG Wes Gamble wrote: > I have a module named X > > module X > > end > > I would like to call one method from another in my module. > > If I do > > public > def method1 > ... > method2 > end > > private > def method2 > ... > end > > why doesn't this work? Is it because this isn't a class and the > "private" keyword isn't meaningful? > > Thanks, > Wes -- Posted via http://www.ruby-forum.com/.