def chomp(sep = $/) "ruby\n".chomp #=> "ruby" end
Returns a new string with the trailing newline removed.
Subclass of Zlib::Error
Zlib::Error
When zlib returns a Z_MEM_ERROR, usually if there was not enough memory.