method

chomp!

v1_8_7_330 - Show latest stable - Class: String
chomp!(...)
public

Modifies str in place as described for String#chomp, returning str, or nil if no modifications were made.