Class: Cl::UnknownValues

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

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ UnknownValues

Returns a new instance of UnknownValues.


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

def initialize(opts)
  opts = opts.map { |(key, value, known)| "#{key}=#{value} (known values: #{known.join(', ')})" }.join(', ')
  super(:unknown_values, opts)
end