Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Regexp
/
//opt/alt/ruby21/share/ri/2.1.0/system/Regexp/named_captures-i.ri
U:RDoc::AnyMethod[iI"named_captures:ETI"Regexp#named_captures;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"PReturns a hash representing information about named captures of <i>rxp</i>.;To:RDoc::Markup::BlankLine o; ; [I"8A key of the hash is a name of the named captures. ;TI"OA value of the hash is an array which is list of indexes of corresponding ;TI"named captures.;T@o:RDoc::Markup::Verbatim; [ I")/(?<foo>.)(?<bar>.)/.named_captures ;TI""#=> {"foo"=>[1], "bar"=>[2]} ;TI" ;TI")/(?<foo>.)(?<foo>.)/.named_captures ;TI"#=> {"foo"=>[1, 2]} ;T:@format0o; ; [I"?If there are no named captures, an empty hash is returned.;T@o;; [I"/(.)(.)/.named_captures ;TI"#=> {};T; 0: @fileI" re.c;T:0@omit_headings_from_table_of_contents_below0I"!rxp.named_captures -> hash ;T0[ I"();T@"FI"Regexp;TcRDoc::NormalClass00