method

chop!

v1_8_7_72 - Show latest stable - Class: Kernel
chop!()
public

Equivalent to $_.chop!.

   a  = "now\r\n"
   $_ = a
   chop!   #=> "now"
   chop!   #=> "no"
   chop!   #=> "n"
   chop!   #=> ""
   chop!   #=> nil
   $_      #=> ""
   a       #=> ""