Ruby Newbie homepage Ruby Newbie homepage

How to use

Quick guide

Official content
Performs the specified substring replacement(s) on self; returns self if any replacement occurred, nil otherwise.
Returns an Enumerator if no replacement and no block given.
 
               static VALUE
rb_str_gsub_bang(int argc, VALUE *argv, VALUE str)
{
    str_modify_keep_cr(str);
    return str_gsub(argc, argv, str, 1);
}
            

Was this page useful?