mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 12:14:51 +00:00
8 lines
280 B
Plaintext
8 lines
280 B
Plaintext
Returns an array of the characters in +self+:
|
|
|
|
'hello'.chars # => ["h", "e", "l", "l", "o"]
|
|
'こんにちは'.chars # => ["こ", "ん", "に", "ち", "は"]
|
|
''.chars # => []
|
|
|
|
Related: see {Converting to Non-String}[rdoc-ref:String@Converting+to+Non--5CString].
|