Refactor Pry::Method.from_str , because of comment on method_or_class_lo...

...okup in lib/pry/code_object.rb .