Class: Clin::FixedArgumentError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/clin/errors.rb

Overview

Error when a fixed argument is not matched

Instance Method Summary collapse

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