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.



61
62
63
64
# File 'lib/cl/errors.rb', line 61

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