ruby/doc/string/intern.rdoc
2026-02-06 18:35:02 -05:00

9 lines
254 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-String].