summaryrefslogtreecommitdiff
path: root/doc/stringio/size.rdoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/stringio/size.rdoc')
-rw-r--r--doc/stringio/size.rdoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/stringio/size.rdoc b/doc/stringio/size.rdoc
new file mode 100644
index 0000000000..253c612c43
--- /dev/null
+++ b/doc/stringio/size.rdoc
@@ -0,0 +1,4 @@
+Returns the number of bytes in the string in +self+:
+
+ StringIO.new('hello').size # => 5 # Five 1-byte characters.
+ StringIO.new('こんにちは').size # => 15 # Five 3-byte characters.