From: Robert Klemme Date: 2011-12-08T19:54:11+09:00 Subject: Re: Using any trick to omit () in constant lookup? On Thu, Dec 8, 2011 at 11:51 AM, Ryan Davis wrote: > > On Dec 8, 2011, at 0:06, Marc Heiler wrote: > >> My first attempt was to do something like: >> >>  Button.new >> >> And convert the Button to the specific toolkit in >> question - i.e. GTK Button, QT Button and so on. > > Don't convert the button instance. Change the class. Road to perdition. > Button = QT::Button > > Button.new Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/