From: Dave Burt Date: 2005-05-29T11:25:21+09:00 Subject: Re: Difference between 'def self..' and module_function . Nikolai wrote: > I'd prefer to not be sic'd, thanks. In email quotations it's obvious > that I made the error, not you. But as long as we're at it, "sic" is > written "sic". It's not an abbreviation, so there's no dot. "Sic" is a > latin word meaning "thus". Sorry for siccing you, I don't know what I was thinking. Thank you for the correction and etymology. >> The second difference is that the latter case leaves a private instance >> method behind. > > OK, thanks. I guess I don't really see the application of this, but I > guess I will once I'll actually need to :-), > nikolai I think the main purpose is simply style. There is another way to do this, as well, good for when you have many functions: module A class << self def a end end end I never prefer module_function. Cheers, Dave