Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

show-doc raises error when called on a Struct field method #28

Open
dgutov opened this issue Jul 21, 2015 · 0 comments
Open

show-doc raises error when called on a Struct field method #28

dgutov opened this issue Jul 21, 2015 · 0 comments

Comments

@dgutov
Copy link
Contributor

dgutov commented Jul 21, 2015

[4] pry(main)> S = Struct.new(:foo)
=> S
[5] pry(main)> ? S#foo
NameError: undefined method `new' for class `S'
from /home/gutov/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/pry-doc-0.8.0/lib/pry-doc.rb:63:in `instance_method'
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant