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
/
String
/
//opt/alt/ruby21/share/ri/2.1.0/system/String/intern-i.ri
U:RDoc::AnyMethod[iI"intern:ETI"String#intern;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"OReturns the <code>Symbol</code> corresponding to <i>str</i>, creating the ;TI"Lsymbol if it did not previously exist. See <code>Symbol#id2name</code>.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"'"Koala".intern #=> :Koala ;TI"%s = 'cat'.to_sym #=> :cat ;TI"%s == :cat #=> true ;TI"&s = '@cat'.to_sym #=> :@cat ;TI"%s == :@cat #=> true ;T:@format0o; ; [I"RThis can also be used to create symbols that cannot be represented using the ;TI" <code>:xxx</code> notation.;T@o;; [I".'cat and dog'.to_sym #=> :"cat and dog";T; 0: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I"str.intern -> symbol;T0[ I"();T@FI"String;TcRDoc::NormalClassI" scanf;T0