diff options
Diffstat (limited to 'doc/string/chars.rdoc')
| -rw-r--r-- | doc/string/chars.rdoc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/string/chars.rdoc b/doc/string/chars.rdoc new file mode 100644 index 0000000000..47fb01b43a --- /dev/null +++ b/doc/string/chars.rdoc @@ -0,0 +1,7 @@ +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-String]. |
