Class: Clin::RequiredArgumentError
- Inherits:
-
ArgumentError
- Object
- Clin::RequiredArgumentError
- Defined in:
- lib/clin/errors.rb
Overview
Error when a fixed argument is not matched
Instance Method Summary collapse
-
#initialize(argument = '', got = '') ⇒ RequiredArgumentError
constructor
Create a new FixedArgumentError.
Constructor Details
#initialize(argument = '', got = '') ⇒ RequiredArgumentError
Create a new FixedArgumentError
36 37 38 |
# File 'lib/clin/errors.rb', line 36 def initialize(argument = '', got = '') super("Expecting '#{argument}' but got '#{got}'") end |