Treats: #chars #codepoints #each_char #each_codepoint #each_grapheme_cluster #grapheme_clusters Also, corrects a passage in #unicode_normalize that mentioned module UnicodeNormalize, whose doc (:nodoc:, actually) says not to mention it.
6 lines
219 B
Plaintext
6 lines
219 B
Plaintext
Returns an array of the characters in +self+:
|
||
|
||
'hello'.chars # => ["h", "e", "l", "l", "o"]
|
||
'тест'.chars # => ["т", "е", "с", "т"]
|
||
'こんにちは'.chars # => ["こ", "ん", "に", "ち", "は"]
|