Class: Cl::InvalidFormat

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

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ InvalidFormat


55
56
57
58
# File 'lib/cl/errors.rb', line 55

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