Class: Cl::OutOfRange

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

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ OutOfRange

Returns a new instance of OutOfRange.



82
83
84
85
# File 'lib/cl/errors.rb', line 82

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