Support class method
Merge pull request #3 from tokorom/classmethod

Support class method