Introduction
You add methods to objects to give them new actions they can do, making your scripts more powerful and organized.
When you want to add a custom action to an existing object without creating a new class.
When you need to reuse a small piece of code as a method on multiple objects.
When you want to extend built-in objects with your own functions for easier scripting.
When you want to keep your script clean by grouping related code inside objects.