method

chop!

v1_8_6_287 - 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!.