add class_methods support
Merge pull request #2 from barelyknown/class-methods

add class_methods support