Skip to content

Ruby 2.6: Hash#merge, Hash#merge! and Hash#update now accept multiple arguments#5537

Merged
enebo merged 3 commits intojruby:ruby-2.6from
nomadium:ruby-2.6-hash-merge-and-update-now-accept-multiple-args
Dec 22, 2018
Merged

Ruby 2.6: Hash#merge, Hash#merge! and Hash#update now accept multiple arguments#5537
enebo merged 3 commits intojruby:ruby-2.6from
nomadium:ruby-2.6-hash-merge-and-update-now-accept-multiple-args

Conversation

@nomadium
Copy link
Contributor

Hi folks,

This PR implements another Ruby 2.6 feature: Make the number of arguments of Hash#merge variable.

For more information, please see feature #15111. [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/15111
  2. https://github.com/ruby/ruby/blob/v2_6_0_rc2/test/ruby/test_hash.rb#L1162-L1191
  3. ruby/ruby@085f5ef

@enebo enebo added this to the JRuby 9.3.0.0 milestone Dec 22, 2018
@enebo enebo merged commit 62b54fe into jruby:ruby-2.6 Dec 22, 2018
@nomadium nomadium deleted the ruby-2.6-hash-merge-and-update-now-accept-multiple-args branch December 23, 2018 12:00
@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