mirror of
https://github.com/ruby/ruby.git
synced 2026-10-29 00:46:26 +08:00
(https://github.com/ruby/stringio/pull/201) https://github.com/ruby/stringio/commit/26d8f60053
5 lines
194 B
Plaintext
5 lines
194 B
Plaintext
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.
|