RuntimeError
Base class of exceptions from Gem::OptionParser.
# File rubygems/optparse/lib/optparse.rb, line 2071 def inspect "#<#{self.class}: #{args.join(' ')}>" end
Default stringizing method to emit standard error message.
# File rubygems/optparse/lib/optparse.rb, line 2078 def message "#{reason}: #{args.join(' ')}#{additional[@arg0] if additional}" end
Returns error reason. Override this for I18N.
# File rubygems/optparse/lib/optparse.rb, line 2067 def reason @reason || self.class::Reason end
Pushes back erred argument(s) to argv
.
# File rubygems/optparse/lib/optparse.rb, line 2039 def recover(argv) argv[0, 0] = @args argv end
# File rubygems/optparse/lib/optparse.rb, line 2051 def set_backtrace(array) super(self.class.filter_backtrace(array)) end