lcMethodFunction function

Specify a custom method based on a function