📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 12:27:59
📂
/ (Root)
/
opt
/
alt
/
ruby30
/
share
/
ri
/
system
/
String
📍 /opt/alt/ruby30/share/ri/system/String
🔄 Refresh
✏️
Editing: intern-i.ri
Read Only
U:RDoc::AnyMethod[iI"intern:ETI"String#intern;TF:privateo: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"3str.intern -> symbol str.to_sym -> symbol ;F0[[I"to_sym;T@ I"();T@FI"String;TcRDoc::NormalClass00
💾 Save Changes
❌ Cancel