The object MethodFunction is a type, with ancestor classes CompiledFunctionClosure < Function < Thing.
The source of this document is in /build/reproducible-path/macaulay2-1.25.05+ds/M2/Macaulay2/packages/Macaulay2Doc/ov_methods.m2:582:0.