ruby/doc/string/intern.rdoc
2025-12-27 10:59:48 -05:00

9 lines
257 B
Plaintext

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