method

chop!

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

Equivalent to $_.chop!.

   a  = "now\r\n"
   $_ = a
   chop!   #=> "now"
   chop!   #=> "no"
   chop!   #=> "n"
   chop!   #=> ""
   chop!   #=> nil
   $_      #=> ""
   a       #=> ""
Show source
Register or log in to add new notes.