inspect()
public
Produce a nicely formatted string-version of rxp. Perhaps
surprisingly, #inspect actually
produces the more natural version of the string than #to_s.
/ab+c/ix.to_s
Show source
/*
* call-seq:
* rxp.inspect => string
*
* Produce a nicely formatted string-version of _rxp_. Perhaps surprisingly,
* <code>#inspect</code> actually produces the more natural version of
* the string than <code>
*
* /ab+c/ix.to_s
*/
static VALUE
rb_reg_inspect(re)
VALUE re;
{
rb_reg_check(re);
return rb_reg_desc(RREGEXP(re)->str, RREGEXP(re)->len, re);
}