summaryrefslogtreecommitdiff
path: root/doc/string/intern.rdoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/string/intern.rdoc')
-rw-r--r--doc/string/intern.rdoc8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/string/intern.rdoc b/doc/string/intern.rdoc
new file mode 100644
index 0000000000..eded6ac3d7
--- /dev/null
+++ b/doc/string/intern.rdoc
@@ -0,0 +1,8 @@
+Returns the Symbol object derived from +self+,
+creating it if it did not already exist:
+
+ 'foo'.intern # => :foo
+ 'こんにちは'.intern # => :こんにちは
+
+Related: see {Converting to Non-String}[rdoc-ref:String@Converting+to+Non--5CString].
+