pry/pry — pull request #1039 by deependersingla (2013-12-11 10:29:55+00:00)
Title: 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.