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

instance method GetoptLong#error_message

error_message -> String | nil

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

class GetoptLong