Refactor lib/pry/method.rb(Pry::Method.all_from_obj).
Merge pull request #1071 from yui-knk/refactor-method

Refactor lib/pry/method.rb(Pry::Method.all_from_obj).