gsub!

str.gsub!(pattern, replacement) â str or nil
str.gsub!(pattern) {|match| block } â str or nil
str.gsub!(pattern) â an_enumerator
Instance Public methods

Performs the substitutions of String#gsub in place, returning str, or nil if no substitutions were performed. If no block and no replacement is given, an enumerator is returned instead.

doc_ruby_on_rails
2015-05-15 16:45:34
Comments
Leave a Comment

Please login to continue.