[Kde-bindings] qtruby: initialize should be initialize(*args)
jm
jeffm at ghostgun.com
Thu Apr 14 07:29:27 UTC 2005
In the examples you have, to use dclock.rb's DigitalClock,
def initialize
super
.
.
.
end
I think this should be
def initialize(*args)
super(*args)
.
.
.
end
While what you have works the second form allows re-use especially when
it's not the main widget. This hit me when I tried exactly that. I
won't say how long it took for me to work this out as it is
embarrassingly long as I naturally thought the mistake was in my code.
J.
More information about the Kde-bindings
mailing list