Ruby 1.9.3 リファレンスマニュアル > ライブラリ一覧 > getoptlongライブラリ > GetoptLongクラス > each

instance method GetoptLong#each

each {|optname, optarg|...}
each_option {|optname, optarg|...}

get メソッドのイテレータ版です。オプションとその引数の取得を 繰り返し行います。

[SEE_ALSO] GetoptLong#get

class GetoptLong