method

chop!

v2_6_3 - Show latest stable - Class: String
chop!()
public

Processes str as for String#chop, returning str, or nil if str is the empty string. See also String#chomp!.