IO readlines now accepts chomp flag as an argument | BigBinary Blog
09-Mar-2017 3035
Since it was a common requirement, Ruby team decided to add an optional parameter to the readlines method. So the same can now be achieved in Ruby 2.4 in the following way.
IO readlines now accepts chomp flag as an argument | BigBinary Blog #ruby #rubydeveloper #rubyonrails #IO #readlines #now #accepts #chomp #flag #as #an #argument #| #BigBinary #Blog #bigbinary #blog https://rubyonrails.ba/link/io-readlines-now-accepts-chomp-flag-as-an-argument-bigbinary-blog