From: David Alan Black Date: 2001-04-26T06:28:14+09:00 Subject: [ruby-talk:14244] Re: RCR: getClassFromString method On Thu, 26 Apr 2001, Phil Tomson wrote: > In article , > Stephen White 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