From: Ralph Shnelvar on 4 Aug 2010 01:17 [Note: parts of this message were removed to make it a legal post.] Because of an apparent bug in FXRuby/Fox/Something that causes a segmentation fault ... I am looking for a workaround to a problem. FXRuby defines a class FXTreeItem. That class has an instance method for the spaceship operator .... <=> And the spaceship operator is called by FXTreeList to sort the child node of the Tree for display. What I want to do is monkey patch the spaceship operator with my own spaceship operator ... but I need to pass in extra information so that I can force the proper sorting order. I don't control how FXTreeList calls the the spaceship operator. I would be grateful for suggestions on how to do this the Ruby way.
|
Pages: 1 Prev: Get rid of extra, blank lines via html parsing? Next: Method with array PROBLEM |