Class: Toys::ArgParser::ArgMissingError
- Inherits:
-
UsageError
- Object
- UsageError
- Toys::ArgParser::ArgMissingError
- Defined in:
- lib/toys/arg_parser.rb
Overview
A UsageError indicating a required positional argument was not fulfilled.
Instance Attribute Summary
Attributes inherited from UsageError
#message, #name, #suggestions, #value
Instance Method Summary collapse
-
#initialize(message = nil, name: nil) ⇒ ArgMissingError
constructor
Create an ArgMissingError.
Methods inherited from UsageError
Constructor Details
#initialize(message = nil, name: nil) ⇒ ArgMissingError
Create an ArgMissingError.
210 211 212 |
# File 'lib/toys/arg_parser.rb', line 210 def initialize( = nil, name: nil) super( || "Required positional argument \"#{name}\" is missing.", name: name) end |