[Kde-bindings] [Bug 105772] New: (ruby) request to have the Qt/KDE methods appear in object.methods and .respond_to?

Gábor Lehel illissius at gmail.com
Mon May 16 14:55:18 UTC 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=105772         
           Summary: (ruby) request to have the Qt/KDE methods appear in
                    object.methods and .respond_to?
           Product: bindings
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: kde-bindings mail kde org
        ReportedBy: illissius gmail com


Version:            (using KDE Devel)
Installed from:    Compiled sources

This would make ducktyping possible -- instead of checking whether object.class == String, you check whether object.respond_to? :to_s, for example. Unfortunately QtRuby and Korundum don't include the Qt/KDE classes' methods in object.methods, and return false to respond_to? (iirc, this is because everything actually happens in method_missing).
If it's not too hard to redefine methods and respond_to? to return the correct values, it'd be great to have. I tried having a look at the code myself, but my foo is weak...



More information about the Kde-bindings mailing list