Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
self
/
root
/
proc
/
thread-self
/
root
/
opt
/
ruby-2.7
/
usr
/
share
/
ri
/
2.7.0
/
system
/
String
/
//proc/self/root/proc/thread-self/root/opt/ruby-2.7/usr/share/ri/2.7.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"BReturns the Symbol corresponding to <i>str</i>, creating the ;FI"?symbol if it did not previously exist. See Symbol#id2name.;Fo: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 ;FI" <code>:xxx</code> notation.;F@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;F0[ I"();T@FI"String;TcRDoc::NormalClass00