Derive Hash for Method.
Merge pull request #124 from reem/method-hash

Derive Hash for Method.