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
A new instance of FixedArgumentError.
Constructor Details
#initialize(argument = '', got = '') ⇒ FixedArgumentError
Returns a new instance of FixedArgumentError.
17 18 19 |
# File 'lib/clin/errors.rb', line 17 def initialize(argument = '', got = '') super("Expecting '#{argument}' but got '#{got}'") end |