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

Use super instead of copy-and-paste in `Net::WebMockNetBufferedIO#i… #790

Merged
merged 1 commit into from
Dec 27, 2018

Conversation

mame
Copy link
Contributor

@mame mame commented Dec 19, 2018

…nitialize`

The body of Net::WebMockNetBufferedIO#initialize is a code clone from Net::BufferedIO#initialize.
(BTW, it seems that @continue_timeout = continue_timeout lacks.)

It is difficult to maintain such a code clone. Instead, it would be better to use super if possible. This PR also should fix #786 gracefully.

…nitialize`

The body of `Net::WebMockNetBufferedIO#initialize` is a code clone from `Net::BufferedIO#initialize`.
(BTW, it seems that `@continue_timeout = continue_timeout` lacks.)

It is difficult to maintain such a code clone.  Instead, it would be better to use `super` if possible.  This PR also should fix bblimke#786 gracefully.
@bblimke
Copy link
Owner

bblimke commented Dec 27, 2018

@mame good idea!

@bblimke bblimke merged commit 0bb025d into bblimke:master Dec 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Please release new version for Ruby 2.6.0
2 participants