Skip to content

Update Enumerator::Yielder types#290

Merged
soutaro merged 1 commit intoruby:masterfrom
pocke:yielder
Jun 1, 2020
Merged

Update Enumerator::Yielder types#290
soutaro merged 1 commit intoruby:masterfrom
pocke:yielder

Conversation

@pocke
Copy link
Member

@pocke pocke commented May 27, 2020

This pull request contains two updates for Enumerator::Yielder class, and test for them.

First, it fixes the wrong type of Enumerator::Yielder#<<. The type took multiple arguments ,but it actually takes one argument.

Second, it adds Enumerator::Yielder#to_proc type. The method has been added since Ruby 2.7.
https://bugs.ruby-lang.org/issues/15618

This pull request only adds test for Enumerator::Yielder, not for Enumerator. Because I guess adding tests for Enumerator will be hard work.

Copy link
Member

@soutaro soutaro left a comment

Choose a reason for hiding this comment

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

🎉

@soutaro soutaro merged commit 6dc3a29 into ruby:master Jun 1, 2020
@pocke pocke deleted the yielder branch June 1, 2020 01:51
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.

2 participants