Change name of the module OnMethod to OnMethodDef

To indicate clearly that it's about method definition
nodes, not method call nodes.