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