Closed mtasaka closed 3 years ago
Code Climate has analyzed commit c1c15034 and detected 0 issues on this pull request.
View more on Code Climate.
@rubychan Could you take a look at this PR? You can also add Ruby 3.0 case to this repo's Travis CI to see the result. Thanks.
Thank you for the fix!
With ruby 3.0, especially with https://github.com/ruby/ruby/pull/3690 , for subclass of Array,
flatten
method now returns the instance of Array, not of the subclass.To keep the object instance of the subclass, use
flatten!
instead.Fixes #254