check if .method matches
Merge pull request #2 from yields/master

check if .method matches