-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CommandSet shouldn't spill its internal state. #980
Comments
There's also this: Pry.commands.commands["help"] = "hahaha!"
Pry.commands["help"] = "hahaha!" # TypeError. |
|
Fixed by #979. |
@kyrylo that PR didn't fix this. |
Sorry, my bad! |
Now
Maybe this issue is fixed ? |
On,
But, I get the same response while on master. So it looks like this is fixed on master:
It looks like c05c8f3 and 77a9c00 by @johnny5- fixed this. 👍 |
@commands
is the objectPry::CommandSet
uses to keep track of its commands. We expose it for everyone atPry::CommandSet#commands
but we shouldn't.Pry::CommandSet
is Enumerable already and anything that mutates@commands
should be a method onPry::CommandSet
. exposing also makes this weird API possible:The text was updated successfully, but these errors were encountered: