From: Christian Koerner Date: 2008-08-13T21:02:32+09:00 Subject: Subclassing, using an alternativ constructor --Sig_/+A5J8jLfWA9LM50wYv3mF. Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi list, I want to create a subclass of GConf::Client, but using GConf::Client.new is deprecated, GConf::Client.default should be used instead. If I call super in 'initialize' it of course calls the 'new' constructor of the superclass, how can I call 'default' instead? #!/usr/bin/env ruby require 'gconf2' class Preferences < GConf::Client def initialize super end end Preferences.new Which results in: warning: GConf::Client.new is deprecated. Use GConf::Client.default instead. Regards Chris --Sig_/+A5J8jLfWA9LM50wYv3mF. Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIosz36rqywW28g1IRAtXRAJkBqwnE+fv3b2gtk5GI/307y3Jf5gCgtZk4 9BJ2cHm9rkfjdzxOQHDLb0A= =2/5o -----END PGP SIGNATURE----- --Sig_/+A5J8jLfWA9LM50wYv3mF.--