From: Gary Wright Date: 2008-02-25T06:43:36+09:00 Subject: Re: Monkeypatching is Destroying Ruby On Feb 24, 2008, at 3:54 PM, furtive.clown@gmail.com wrote: > I have a simple example from my own experience. In one project I had > a bewildering number of property sets which needed to be added, > subtracted, or'd, and and'ed with each other every which way. I began > using a Set class but it quickly became too cumbersome, as many of my > definitions used hash literals. Inserting +,-,&,| methods into the > Hash class was a tremendous help: using these operations with Hash > literals GREATLY improved readability and maintainability. You describe one leading cause of monkeypatching--missing functionality in the core classes. Here is another example: class Object def singleton_class # or meta_class or eigen_class or ... (class <