Issue 998  - cannot find [] with additional .

The changes are made in Pry::Method.to_str by adding one more regex and altering one of the last regex.
The output after change are made:
https://gist.github.com/deependersingla/7907673

The test have been written in method/spec_method.rb for the changes which are made.