method

gsub!

Importance_1
v1_8_6_287 - Show latest stable - 0 notes - Class: Kernel
gsub!(...) public

Equivalent to Kernel::gsub, except nil is returned if $_ is not modified.

   $_ = "quick brown fox"
   gsub! /cat/, '*'   #=> nil
   $_                 #=> "quick brown fox"
Show source
Register or log in to add new notes.