Hi,

I have a module I would like to do some initialization of a class when a
new instance is created.  What is the best way my initialization code
executes when a new instance of the object or a sub-class of the object
is instantiated?  I'd like this to be as transparent to the user as
possible.

Should I define a "new" method in my module and then do a super?
Something like this:

module Foo
	def new
		# do some stuff here....
		super
	end
end

What are the implications of this?  Is there a better way to have code
execute upom instantiation of an object?  Even in a child object?

Is this clear or am I babbling?

Thanks,

Mike


-- 
Michael P. Sullivan                                  
Distributed Computing Systems, LLC                         Cell: 516-429-2080 
E-Mail: mps / discomsys.com                           http://www.discomsys.com/ 
    * UNIX Systems and Database Consulting, Architecture and Management *
"Failing to plan, is planning to fail... plan for the worst, hope for the best"