def chomp(sep = $/) "ruby\n".chomp #=> "ruby" end
Returns a new string with the trailing newline removed.
BasicSocket is the super class for all the Socket classes.
BasicSocket
Socket