method

inspect

v1_9_2_180 - Show latest stable - Class: Regexp
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.inspect        #=> "/ab+c/ix"