Class: Toys::ArgParser::ExtraArgumentsError
- Inherits:
-
UsageError
- Object
- UsageError
- Toys::ArgParser::ExtraArgumentsError
- Defined in:
- lib/toys/arg_parser.rb
Overview
A UsageError indicating extra arguments were supplied.
Instance Attribute Summary
Attributes inherited from UsageError
#message, #name, #suggestions, #value
Instance Method Summary collapse
-
#initialize(message = nil, value: nil, values: nil) ⇒ ExtraArgumentsError
constructor
Create an ExtraArgumentsError.
Methods inherited from UsageError
Constructor Details
#initialize(message = nil, value: nil, values: nil) ⇒ ExtraArgumentsError
Create an ExtraArgumentsError.
227 228 229 |
# File 'lib/toys/arg_parser.rb', line 227 def initialize( = nil, value: nil, values: nil) super( || "Extra arguments: \"#{Array(values).join(' ')}\".", value: value) end |