Class: Cl::InvalidFormat

Inherits:
OptionError
  • Object
show all
Defined in:
lib/cl/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ InvalidFormat

Returns a new instance of InvalidFormat.



89
90
91
92
# File 'lib/cl/errors.rb', line 89

def initialize(opts)
  opts = opts.map { |opt, format| "#{opt} (format: #{format})" }.join(', ')
  super(:invalid_format, opts)
end