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
/
Abbrev
/
//opt/alt/ruby21/share/ri/2.1.0/system/Abbrev/abbrev-c.ri
U:RDoc::AnyMethod[iI"abbrev:EFI"Abbrev::abbrev;TT:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [ I">Given a set of strings, calculate the set of unambiguous ;TI"Gabbreviations for those strings, and return a hash where the keys ;TI"Dare all the possible abbreviations and the values are the full ;TI" strings.;To:RDoc::Markup::BlankLine o; ; [I"OThus, given +words+ is "car" and "cone", the keys pointing to "car" would ;TI"Qbe "ca" and "car", while those pointing to "cone" would be "co", "con", and ;TI""cone".;T@o:RDoc::Markup::Verbatim; [ I"require 'abbrev' ;TI" ;TI"$Abbrev.abbrev(['car', 'cone']) ;TI"R#=> {"ca"=>"car", "con"=>"cone", "co"=>"cone", "car"=>"car", "cone"=>"cone"} ;T:@format0o; ; [I"EThe optional +pattern+ parameter is a pattern or a string. Only ;TI"Cinput strings that match the pattern or start with the string ;TI"%are included in the output hash.;T@o;; [I"*Abbrev.abbrev(%w{car box cone}, /b/) ;TI"0#=> {"bo"=>"box", "b"=>"box", "box"=>"box"};T; 0: @fileI"lib/abbrev.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(words, pattern = nil);T@&FI"Abbrev;FcRDoc::NormalModule00