noreply at rubyforge.org
2009-May-05 12:59 UTC
[wxruby-development] [ wxruby-Bugs-25783 ] bad method_missing implementation for the RubyStyleAccessors module
Bugs item #25783, was opened at 05/05/2009 14:59 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=25783&group_id=35 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Pascal Hurni (phi) Assigned to: Nobody (None) Summary: bad method_missing implementation for the RubyStyleAccessors module Initial Comment: Since wxRuby extends all classes with RubyStyleAccessors, the method_missing method of all these classes is replaced. The wrong side is that if any Wx class gets also extended by client code (my app) then the RubyStyleAccessors will catch first and it currently does not propagate the method_missing. The attached patch simply replace the code the re-raise the exception in method_missing by a call to ''super'' which takes care of the inheritance chain. Regards, Pascal ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=25783&group_id=35