Ruby Tuesday #20 : Prevent monkeypatching
Monkeypatching is the practice of redefining methods in classes at runtime. According to this Wikipedia article, the exact definition varies between the Ruby and Python communities. Some think it’s a good thing, while others take a different view. If you want to prevent it from happening, here’s an answer : make methods immutable.