[fxruby-users] Warning on kwargs on launch
Michèle Garoche
migatine at gmail.com
Mon Nov 3 11:04:49 EST 2008
Thank you very much Ryan, I prefer this solution than to disable
warning (which I've not done).
Le 3 nov. 2008 à 16:36, Melton, Ryan a écrit :
> It easy to remove redefinition warnings. Just wrap the
> redefinition like so:
>
>
>
> $VERBOSE = nil
>
>
>
> def redefined_method
>
> …
>
> end
>
>
>
> $VERBOSE = true
>
>
>
> This disables ruby warnings for that section.
>
>
>
> Ryan
>
>
>
> From: fxruby-users-bounces at rubyforge.org [mailto:fxruby-users-
> bounces at rubyforge.org] On Behalf Of Lyle Johnson
> Sent: Saturday, November 01, 2008 5:33 PM
> To: fxruby-users at rubyforge.org
> Subject: Re: [fxruby-users] Warning on kwargs on launch
>
>
>
>
>
> On Nov 1, 2008, at 3:05 PM, Michèle Garoche wrote:
>
>
>
>
> Hello,
>
>
>
> I've got this warning:
>
>
>
> /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.6.16/lib/fox16/kwargs.rb:
> 82: warning: redefine listFonts
>
>
>
> when launching an FXRuby application.
>
>
>
> Is there anything I could changee in kwargs.rb to get rid of it?
>
>
>
> Run Ruby without warnings turned on (i.e. don't pass the "-w" flag
> to ruby). I'm not sure why they've chosen to tag redefining methods
> as a warning, but there's not much we can do about it.
>
>
>
> Hope this helps,
>
>
>
> Lyle
>
>
>
> ---
>
> "FXRuby: Create Lean and Mean GUIs with Ruby"
>
> Now available from the Pragmatic Bookshelf!
>
> http://www.pragprog.com/titles/fxruby
>
>
>
>
>
>
>
>
>
>
>
> This message and any enclosures are intended only for the
> addressee. Please
> notify the sender by email if you are not the intended recipient.
> If you are
> not the intended recipient, you may not use, copy, disclose, or
> distribute this
> message or its contents or enclosures to any other person and any
> such actions
> may be unlawful. Ball reserves the right to monitor and review all
> messages
> and enclosures sent to or from this email address.
> _______________________________________________
> fxruby-users mailing list
> fxruby-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/fxruby-users
Cheers,
Michèle
<http://micmacfr.homeunix.org>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20081103/dff4137d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 36C471DED4B09EEB30A0281F2608DB2FE6F9E147.gpgkey
Type: application/octet-stream
Size: 1744 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20081103/dff4137d/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20081103/dff4137d/attachment-0001.html>
More information about the fxruby-users
mailing list