Ruby 1.9.0 リファレンスマニュアル > ライブラリ一覧 > library getoptlong > class GetoptLong > error

instance method GetoptLong#error

error
error?

現在のエラーの型を返します。エラーが発生していなければ、nil を返します。