Class: Cl::InvalidFormat
- Inherits:
-
OptionError
- Object
- Cl::InvalidFormat
- Defined in:
- lib/cl/errors.rb
Instance Method Summary collapse
-
#initialize(opts) ⇒ InvalidFormat
constructor
A new instance of InvalidFormat.
Constructor Details
#initialize(opts) ⇒ InvalidFormat
Returns a new instance of InvalidFormat.
89 90 91 92 |
# File 'lib/cl/errors.rb', line 89 def initialize(opts) opts = opts.map { |opt, format| "#{opt} (format: #{format})" }.join(', ') super(:invalid_format, opts) end |