diff options
Diffstat (limited to 'doc/string/chars.rdoc')
-rw-r--r-- | doc/string/chars.rdoc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/string/chars.rdoc b/doc/string/chars.rdoc new file mode 100644 index 0000000000..d24a1cc3a9 --- /dev/null +++ b/doc/string/chars.rdoc @@ -0,0 +1,5 @@ +Returns an array of the characters in +self+: + + 'hello'.chars # => ["h", "e", "l", "l", "o"] + 'тест'.chars # => ["т", "е", "с", "т"] + 'こんにちは'.chars # => ["こ", "ん", "に", "ち", "は"] |