Skip to content
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

remove method "d" from global namespace #59

Closed
wants to merge 1 commit into from

Conversation

alexch
Copy link

@alexch alexch commented Sep 17, 2012

ruby_parser_extras defines a method "d" (which is used exactly once, in the same file) in the public namespace (main). This conflicts with Wrong's "d" method which is part of a module; for some reason even when I "include Wrong::D" the ruby_parser one is called. It's basically bad form for a gem to clutter the global namespace in any case.

This patch puts it inside the (only) object where it's called.

ruby_parser_extras defines a method "d" (which is used exactly once, in the same file) in the public namespace (main). This conflicts with Wrong's "d" method which is part of a module; for some reason even when I "include Wrong::D" the ruby_parser one is called. It's basically bad form for a gem to clutter the global namespace in any case.

This patch puts it inside the (only) object where it's called.
@zenspider
Copy link
Member

trailing whitespace... tsk tsk...

@zenspider zenspider closed this Sep 26, 2012
@seattlerb seattlerb locked and limited conversation to collaborators Jan 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants