pry/pry — Issue #299: when edit-method and show-method are invoked without param, bad error msg
Author: banister
Created: 2011-10-12 15:40:00+00:00
State: open
Labels: bug

when `show-method` is invoked without args and `__method__` returns nil, the error message reveals implementation details
same goes for `edit-method`:

```
[5] (pry) main: 0> show-method
SyntaxError:

: syntax error, unexpected ')', expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END
instance_method(:)
^
from /Users/john/.rvm/gems/ruby-1.9.3-preview1/gems/pry-0.9.6.2/lib/pry/helpers/command_helpers.rb:211:in `eval'
[6] (pry) main: 0>
```