Class: Cl::InvalidFormat

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

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ InvalidFormat

Returns a new instance of InvalidFormat.



53
54
55
56
# File 'lib/cl.rb', line 53

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