mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
8 lines
334 B
Text
8 lines
334 B
Text
Returns an array of the characters in +self+:
|
||
|
||
'hello'.chars # => ["h", "e", "l", "l", "o"]
|
||
'тест'.chars # => ["т", "е", "с", "т"]
|
||
'こんにちは'.chars # => ["こ", "ん", "に", "ち", "は"]
|
||
''.chars # => []
|
||
|
||
Related: see {Converting to Non-String}[rdoc-ref:String@Converting+to+Non--5CString].
|