Skip to content

Ruby 2.6: Add a new #then alias to Kernel#yield_self#5508

Merged
enebo merged 1 commit intojruby:ruby-2.6from
nomadium:ruby-2.6-add-a-new-then-alias-to-kernel-yield-self
Dec 11, 2018
Merged

Ruby 2.6: Add a new #then alias to Kernel#yield_self#5508
enebo merged 1 commit intojruby:ruby-2.6from
nomadium:ruby-2.6-add-a-new-then-alias-to-kernel-yield-self

Conversation

@nomadium
Copy link
Contributor

Hi folks,

This PR implements another Ruby 2.6 feature: Add a new #then alias to Kernel#yield_self.

For more information, please see feature #14594 [1].

All its related tests are passing [2].

For reference, I include a link to the commit introducing the functionality in MRI. [3]

Thanks in advance for any feedback.

  1. https://bugs.ruby-lang.org/issues/14594
  2. https://github.com/ruby/ruby/blob/v2_6_0_rc1/spec/ruby/core/kernel/yield_self_spec.rb#L5-L7
  3. ruby/ruby@d53ee00

For more information, please see feature #14594.
@enebo enebo added this to the JRuby 9.3.0.0 milestone Dec 11, 2018
@enebo enebo merged commit a708b81 into jruby:ruby-2.6 Dec 11, 2018
@nomadium nomadium deleted the ruby-2.6-add-a-new-then-alias-to-kernel-yield-self branch December 18, 2018 19:14
@kares kares added the ruby 2.6 label Jan 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants