From: gabriele renzi Date: 2005-03-24T20:34:49+09:00 Subject: Re: Instead of templates Adelle Hartley ha scritto: > If I were writing this in C++, I'd use templates. What's the Ruby Way? probably mixins using #extend : >> a=Class.new => # >> module M; def foo() 'yuk' end; end => nil >> a.extend M => # >> a.foo => "yuk"