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