Ruby 2.6 adds String#split with block
Ruby 2.6 series | String#split with block is added in Ruby 2.6. split yields each split substrings if the block is given, instead of returing the array.