From: Martin DeMello Date: 2007-10-09T14:42:33+09:00 Subject: Re: The Case for Multiple-Inheritance On 10/8/07, Austin Ziegler wrote: > Specifically, why not something more transparent? > case platform > when :windows > require 'win_metrics' > mon.extend(WindowsMetrics) > when :linux > require 'lin_metrics' > mon.extend(LinuxMetrics) > end Mostly because the metaphor I was going for was a set of building blocks to assemble a monitor, so it made sense (or at least it seemed like the most aesthetic design to me) for the "actual" program to explicitly pull in all its pieces and put them together. But what I was trying to get at there was that modules form a convenient way to put a bunch of functionality together and then drop it into a class in a very self-documenting manner - it's not about reuse so much as packaging. martin