mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
10 lines
297 B
Plaintext
10 lines
297 B
Plaintext
Returns the Symbol object derived from +self+,
|
|
creating it if it did not already exist:
|
|
|
|
'foo'.intern # => :foo
|
|
'тест'.intern # => :тест
|
|
'こんにちは'.intern # => :こんにちは
|
|
|
|
Related: see {Converting to Non-String}[rdoc-ref:String@Converting+to+Non--5CString].
|
|
|