One\n Two\n Three\n Four\n
remove_lines(2) would remove the first two lines, leaving the string:
Three\n Four\n
>> s = "One\nTwo\nThree\nFour\n" => "One\nTwo\nThree\nFour\n" >> s.to_a[2..-1].join => "Three\nFour\n"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With