methodwrapper
nounUK /ˈmɛθədˌræpə/
US /ˈmɛθədˌræpər/
A method wrapper is a cover that holds a method safely inside.
The programmer used a method wrapper to keep the code tidy.
RELATED WORDS
OTHER MEANINGS
2. A software tool that puts extra steps around a method, like checking or logging.
The method wrapper logged every call to the function.
3. A protective layer that hides the details of how a method works.
She added a method wrapper so users could not change the settings.
4. A small helper that calls another method in a simpler way.
The method wrapper made the long command easy to use.