[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Subclassing, using an alternativ constructor

Michael Libby

8/13/2008 2:55:00 PM

On Wed, Aug 13, 2008 at 7:02 AM, Christian Koerner <misk@gmx.net> wrote:
>
> 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?

Why not follow the example of the superclass and use 'default' instead
of 'new' for your subclass as well?

-Michael