Skip to content

Refine dclone definitions not to leak outside of REXML - #37

Merged
kou merged 1 commit into
ruby:masterfrom
amatsuda:refinements
Dec 9, 2020
Merged

Refine dclone definitions not to leak outside of REXML#37
kou merged 1 commit into
ruby:masterfrom
amatsuda:refinements

Conversation

@amatsuda

@amatsuda amatsuda commented Dec 9, 2020

Copy link
Copy Markdown
Member

While investigating my app, I found an unfamiliar dclone method on Object, which turned out to be defined here in xpath_parser.rb only for using in xpath_parser.rb.

I believe this is the very use case of Ruby's most underevaluated feature, Refinements.

With this patch, we're no longer seeing the dclone method leaking into our apps.

@kou
kou merged commit d97b318 into ruby:master Dec 9, 2020
@kou

kou commented Dec 9, 2020

Copy link
Copy Markdown
Member

Thanks!

@amatsuda
amatsuda deleted the refinements branch December 9, 2020 06:16
abrom added a commit to abrom/rexml that referenced this pull request May 19, 2021
ruby#37 fixes leakage of `dclone` method
@abrom abrom mentioned this pull request May 19, 2021
hsbt pushed a commit that referenced this pull request May 19, 2021
#37 fixes leakage of `dclone` method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants