summaryrefslogtreecommitdiff
path: root/doc/string/chars.rdoc
blob: d24a1cc3a925ca2fae6eb7f12df96eee815ccc54 (plain)
1
2
3
4
5
Returns an array of the characters in +self+:

  'hello'.chars     # => ["h", "e", "l", "l", "o"]
  'тест'.chars      # => ["т", "е", "с", "т"]
  'こんにちは'.chars # => ["こ", "ん", "に", "ち", "は"]