method_func

class sknano.core.meta.method_func(classobj, methodname, reversed=False)[source] [edit on github][source]

Bases: object

Define functions from existing class methods.

This class is based off of the the numpy _frommethod class.

Parameters:
  • classname (str) – Name of the class containing methodname
  • methodname (str) – Name of the method to transform.

Methods

__call__(a, *args, **params)
getdoc() Return the doc of the function (from the doc of the method).

Methods Summary

__call__(a, *args, **params)
getdoc() Return the doc of the function (from the doc of the method).

Methods Documentation

__call__(a, *args, **params)[source] [edit on github][source]
getdoc()[source] [edit on github][source]

Return the doc of the function (from the doc of the method).