From: Dave Thomas Date: 2000-08-22T19:03:19+09:00 Subject: [ruby-talk:4546] Re: Class aliases Robert Feldt writes: > Hi, > > Is there a better/other way of aliasing a class than doing > > class OC > # Stuff here... > end > > class AliasForOC < OC > end Believe it or not: AliasForOC = OC A class name is just a constant that references the underlying class object. class Bert def sayHi puts "Hi" end end Ernie = Bert puts Ernie.type # Class e = Ernie.new puts e.type # Bert e.sayHi # Hi Regards Dave