ruby/doc/string/intern.rdoc
2025-08-26 14:27:54 -04:00

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].