Ruby 1.9.0 リファレンスマニュアル > ライブラリ一覧 > library _builtin > object ENV > length

singleton method ENV.length

length -> Fixnum
size -> Fixnum

環境変数の数を返します。