str.sub!(pattern, replacement) â str or nil
str.sub!(pattern) {|match| block } â str or nil
str.sub!(pattern) {|match| block } â str or nil
Instance Public methods
Performs the same substitution as #sub in-place.
Returns str
if a substitution was performed or
nil
if no substitution was performed.
Please login to continue.