On Thu, 26 Apr 2001, Phil Tomson wrote:

> In article <Pine.LNX.4.21.0104240801510.847-100000 / localhost.localdomain>,
> Stephen White  <spwhite / chariot.net.au> wrote:
> >
> >  if $PLATFORM == "PC"
> >    class Tool < Tool_PC
> >    end
> >  else
> >    class Tool < Tool_UNIX
> >    end
> >  end
> >
> >then you could just use class Tool.
>
> This is kind of an interesting way to do it, too, what would you call it,
> dynamic inheritance?

No more or less dynamic than other inheritance in Ruby :-)  I guess
conditional inheritance.


David

-- 
David Alan Black
home: dblack / candle.superlink.net
work: blackdav / shu.edu
Web:  http://pirate.shu.edu/~blackdav