PATH:
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Regexp
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Returns a string containing the regular expression and its options (using the <tt>(?xxx:yyy)</tt> notation. This string can be fed back in to <tt>Regexp::new</tt> to a regular expression with the same semantics as the original. (However, <tt>Regexp#==</tt> may not return true when comparing the two, as the source of the regular expression itself may differ, as the example shows). <tt>Regexp#inspect</tt> produces a generally more readable version of <em>rxp</em>. - !ruby/struct:SM::Flow::VERB body: " r1 = /ab+c/ix #=> /ab+c/ix\n s1 = r1.to_s #=> "(?ix-m:ab+c)"\n r2 = Regexp.new(s1) #=> /(?ix-m:ab+c)/\n r1 == r2 #=> false\n r1.source #=> "ab+c"\n r2.source #=> "(?ix-m:ab+c)"\n" full_name: Regexp#to_s is_singleton: false name: to_s params: | rxp.to_s => str visibility: public
[-] quote-c.yaml
[edit]
[-] match-i.yaml
[edit]
[-] compile-c.yaml
[edit]
[-] last_match-c.yaml
[edit]
[-] to_yaml-i.yaml
[edit]
[-] hash-i.yaml
[edit]
[-] source-i.yaml
[edit]
[-] %3d%3d%3d-i.yaml
[edit]
[-] %7e-i.yaml
[edit]
[-] union-c.yaml
[edit]
[-] cdesc-Regexp.yaml
[edit]
[-] inspect-i.yaml
[edit]
[-] %3d%7e-i.yaml
[edit]
[-] %3d%3d-i.yaml
[edit]
[-] kcode-i.yaml
[edit]
[-] yaml_new-c.yaml
[edit]
[-] eql%3f-i.yaml
[edit]
[-] casefold%3f-i.yaml
[edit]
[+]
..
[-] new-c.yaml
[edit]
[-] %26-i.yaml
[edit]
[-] %7c-i.yaml
[edit]
[-] to_s-i.yaml
[edit]
[-] options-i.yaml
[edit]
[-] escape-c.yaml
[edit]