From: Robert Dober Date: 2007-06-16T17:45:20+09:00 Subject: Re: Using extend for initialization settings? On 6/16/07, Trans wrote: > > > #to_module is just a convenience so one can pass in a container module > or a hash (or anything else that responds to #to_module). It's > basically the same as when you accept a string but go ahead and > generalize it to accept anything that responds to #to_s. In other > words, it's a better approach than > > def initialize(settings) > case settings > when Module > ... > when Hash > ... > > T. Thanks for the clarification, I thaught it was part of the concept and got confused. It might indeed be very useful as described above. Robert -- You see things; and you say Why? But I dream things that never were; and I say Why not? -- George Bernard Shaw