Marc Heiler wrote: > How can I convert my object "foobar" of "class Button" > > foobar = Button.new > > to become a "real" Gtk::Button for instance? foobar = Button.new foobar.kind_of?(Gtk::Button) # => true How? class Button def initialize extend Gtk::Button end end It does not really change the class, and if your Gtk::Button is a preexisting class it won't work (because this idea requires Gtk::Button to be a module). But it changes the ancestry and methods of Gtk::Button are invoked before those of Button. HTH, regards Stefan -- Posted via http://www.ruby-forum.com/.