def chomp(sep = $/) "ruby\n".chomp #=> "ruby" end
Returns a new string with the trailing newline removed.
Raised when Ractor-unsafe C-methods is invoked by a non-main Ractor.
Ractor