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
/
ruby27
/
share
/
ri
/
system
/
Regexp
/
//opt/alt/ruby27/share/ri/system/Regexp/try_convert-c.ri
U:RDoc::AnyMethod[iI"try_convert:ETI"Regexp::try_convert;TT:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"FTry to convert <i>obj</i> into a Regexp, using to_regexp method. ;TI"GReturns converted regexp or nil if <i>obj</i> cannot be converted ;TI"for any reason.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"/Regexp.try_convert(/re/) #=> /re/ ;TI".Regexp.try_convert("re") #=> nil ;TI" ;TI"o = Object.new ;TI".Regexp.try_convert(o) #=> nil ;TI"!def o.to_regexp() /foo/ end ;TI"/Regexp.try_convert(o) #=> /foo/;T:@format0: @fileI" re.c;T:0@omit_headings_from_table_of_contents_below0I"*Regexp.try_convert(obj) -> re or nil ;T0[ I" (p1);T@FI"Regexp;TcRDoc::NormalClass00