From: Intransition Date: 2010-05-16T02:24:29+09:00 Subject: Re: Propogate variable up to included module On May 15, 1:05 pm, Robert Dober wrote: > > module M>    def self.m > >      @x ||= 20 > >    end > >  end > > I do not think this is necessary > > >  class X > >    include M > >    def self.m > >      anc = ancestors.find{ |a| a.respond_to?(:m) } > >      anc.m if anc > > replace this with instance_variable_get (potentially guarded by an > instance_variable_defined?) How would that work? > I wonder however, what this is good for, I am not sure I understood > what OP wanted Basically class inheritable attributes.