fixes #310: properly recognize class methods
Merge pull request #314 from incanus/master

fixed #310: properly recognize class methods