From: dblack@... Date: 2006-01-08T08:06:19+09:00 Subject: Re: Iterator Fu Failing Me Hi -- On Sun, 8 Jan 2006, ara.t.howard@noaa.gov wrote: > On Sun, 8 Jan 2006, Pierre Barbier de Reuille wrote: > >> Could you explain this module ? >> >> I think I can understand why you defined a module ClassMethods : to include >> class methods and not only instace methods. >> >> However, I don't understant why the InstanceMethods module ? What do you >> expect with this module ? Is it just for symetry ? > > yes. just symetry/clarity. is use this pattern alot. even if someone > doesn't understand the mechanism i generally assume the 'ClassMethods' and > 'InstanceMethods' names will give it away. Wouldn't it be clearer just to write instance methods for a module? It feels a bit like you're creating a kind of second skin for a system that already does this. David -- David A. Black dblack@wobblini.net "Ruby for Rails", from Manning Publications, coming April 2006! http://www.manning.com/books/black