Class: Cl::OutOfRange
- Inherits:
-
OptionError
- Object
- Cl::OutOfRange
- Defined in:
- lib/cl/errors.rb
Instance Method Summary collapse
-
#initialize(opts) ⇒ OutOfRange
constructor
A new instance of OutOfRange.
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 |