summaryrefslogtreecommitdiff
path: root/doc/string/intern.rdoc
blob: eded6ac3d727c9eb44f1b2e27d6649c9904b6029 (plain)
1
2
3
4
5
6
7
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].