From: Michael Garriss Date: 2003-08-12T10:56:36+09:00 Subject: Re: newbie mixin questions dblack@superlink.net wrote: >One other technique that might be relevant is Module#included, which >as I understand it is essentially a new name for append_features. (Is >that accurate?) Here's a 1.8.0 example: > > module M > def self.included(c) > def c.something > puts "I'm a class method!" > end > super > end > > def another > puts "I'm an instance method!" > end > end > >The inclusion now operates, with fairly clear separation, on both the >class and the instances: > > class A; include M; end > > A.something > A.new.another > > >David > > > That's what I needed. Thanks! Michael