Skip to content

Conversation

@BurdetteLamar
Copy link
Member

No description provided.

* StringIO.new(string = '', mode = 'r+') -> new_stringio
*
* Note that +mode+ defaults to <tt>'r'</tt> if +string+ is frozen.
* self.new(string = '', mode = 'r+') -> new_stringio
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you keep using StringIO.new instead of self.new?
Nobody doesn't use self.new to create a new StringIO object.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@BurdetteLamar BurdetteLamar requested a review from kou October 23, 2025 14:37
@kou kou merged commit d33ac81 into ruby:master Oct 23, 2025
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants