Ruby 1.9.3 リファレンスマニュアル > ライブラリ一覧 > stringioライブラリ > StringIOクラス > length

instance method StringIO#length

size -> Integer
length -> Integer

文字列の長さを返します。

class StringIO