Ruby Newbie homepage Ruby Newbie homepage

How to use

Quick guide

Official content
Returns a copy of self with all occurrences of the given pattern replaced.
Returns an Enumerator if no replacement and no block given.
               static VALUE
rb_str_gsub(int argc, VALUE *argv, VALUE str)
    return str_gsub(argc, argv, str, 0);

Was this page useful?