method
chomp

chomp(...)
public
Equivalent to $_ = $_.chomp(string). See String#chomp.
$_ = "now\n" chomp #=> "now" $_ #=> "now" chomp "ow" #=> "n" $_ #=> "n" chomp "xxx" #=> "n" $_ #=> "n"
chomp(...)
public
Equivalent to $_ = $_.chomp(string). See String#chomp.
$_ = "now\n" chomp #=> "now" $_ #=> "now" chomp "ow" #=> "n" $_ #=> "n" chomp "xxx" #=> "n" $_ #=> "n"