def chomp(sep = $/) "ruby\n".chomp #=> "ruby" end
Returns a new string with the trailing newline removed.
Raised when you try to write to a read-only buffer, or resize an external buffer.