Generally, if you want to fix some inline method, you must first create an alias for the original method. Most of the time you will call the old one somewhere in your override method. Otherwise, you will lose the functionality of the original method and most likely break the application logic.
- Use
ri require or read the documentation to find out where the require method is defined. You will find it in the Kernel module. In addition, you will find your method signature to find out what the parameter list looks like. - Patch module Monkey
Kernel . DO NOT disrupt functionality if you do not know what you are doing.
module Kernel
Arie xiao
source share