VaKeR CYBER ARMY
Logo of a company Server : Apache
System : Linux host44.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
User : vapecompany ( 2719)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /opt/alt/ruby18/share/ri/1.8/system/Regexp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/ruby18/share/ri/1.8/system/Regexp/to_s-i.yaml
--- !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         #=&gt; /ab+c/ix\n   s1 = r1.to_s          #=&gt; &quot;(?ix-m:ab+c)&quot;\n   r2 = Regexp.new(s1)   #=&gt; /(?ix-m:ab+c)/\n   r1 == r2              #=&gt; false\n   r1.source             #=&gt; &quot;ab+c&quot;\n   r2.source             #=&gt; &quot;(?ix-m:ab+c)&quot;\n"
full_name: Regexp#to_s
is_singleton: false
name: to_s
params: |
  rxp.to_s   => str

visibility: public

VaKeR 2022