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

Refactor Reline::Core #561

Merged
merged 2 commits into from Jul 4, 2023
Merged

Refactor Reline::Core #561

merged 2 commits into from Jul 4, 2023

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Jul 3, 2023

  1. Since Reline::Core already has encoding method, we don't need to get encoding from IOGate repeatedly.
  2. Because different IOGate classes have different input/output setters, we can use that instead of checking the IOGate's class type.

@st0012 st0012 requested a review from a team July 3, 2023 14:57
@tompng tompng merged commit 45acc2f into master Jul 4, 2023
60 checks passed
@tompng tompng deleted the reduce-io-gate-references branch July 4, 2023 13:52
matzbot pushed a commit to ruby/ruby that referenced this pull request Jul 4, 2023
(ruby/reline#561)

* Use Reline::Core.encoding instead of directly referencing IOGate

* Set input/output based on the IOGate's interface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants