Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > Stringクラス > length

instance method String#length

length -> Integer
size -> Integer

文字列のバイト数を返します。

class String