On Thu, Dec 8, 2011 at 11:51 AM, Ryan Davis <ryand-ruby / zenspider.com> wrot=
e:
>
> On Dec 8, 2011, at 0:06, Marc Heiler <shevegen / linuxmail.org> wrote:
>
>> My first attempt was to do something like:
>>
>> =A0Button.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 =3D QT::Button
>
> Button.new

Cheers

robert

--=20
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/