Exception: Toys::ArgParser::ExtraArgumentsError
- Inherits:
-
UsageError
- Object
- StandardError
- UsageError
- Toys::ArgParser::ExtraArgumentsError
- Defined in:
- core-docs/toys/arg_parser.rb
Overview
Defined in the toys-core gem
A UsageError indicating extra arguments were supplied.
Instance Attribute Summary collapse
-
#arguments ⇒ Array<String>
readonly
All extra arguments.
Attributes inherited from UsageError
#message, #name, #suggestions, #value
Instance Method Summary collapse
-
#initialize(message = nil, arguments: nil) ⇒ ExtraArgumentsError
constructor
Create an ExtraArgumentsError.
Methods inherited from UsageError
Constructor Details
#initialize(message = nil, arguments: nil) ⇒ ExtraArgumentsError
Create an ExtraArgumentsError.
236 237 238 |
# File 'core-docs/toys/arg_parser.rb', line 236 def initialize( = nil, arguments: nil) # Source available in the toys-core gem end |
Instance Attribute Details
#arguments ⇒ Array<String> (readonly)
Returns All extra arguments.
243 244 245 |
# File 'core-docs/toys/arg_parser.rb', line 243 def arguments @arguments end |