From: Ralph Mason Date: 2001-12-08T09:57:47+09:00 Subject: [ruby-talk:27881] Re: Trolling ;) This doesn't work is it a bug? Class President include Intern include Honesty end Ralph ----- Original Message ----- From: "Bob Calco" To: "ruby-talk ML" Sent: Saturday, December 08, 2001 12:46 PM Subject: [ruby-talk:27877] Re: Trolling ;) > You might just want to make use of Ruby's mixin technology, here. After all > are many potential objects that suck, regardless of class. The following > should clarify: > > module Intern > def suck > puts "sucking..." > end > end > > class Vacuum > include Intern > end > > (That's decidedly bad DC humor...sorry, I couldn't resist.) > > ;) > > Bob Calco > > # > # > -----Original Message----- > # > From: dave@thomases.com [mailto:dave@thomases.com]On Behalf Of Dave > # > > # > "Rich Kilmer" writes: > # > > # > > class Vacuum > # > > def Vacuum.suck > # > > puts "sucking..." > # > > end > # > > end > # > > > # > > Vacuum.suck > # > > # > But sucking is rarely a class act :) > # > # > # > >