Class: Cl::RequiredOpts
- Inherits:
-
OptionError
- Object
- Cl::RequiredOpts
- Defined in:
- lib/cl/errors.rb
Instance Method Summary collapse
-
#initialize(opts) ⇒ RequiredOpts
constructor
A new instance of RequiredOpts.
Constructor Details
#initialize(opts) ⇒ RequiredOpts
Returns a new instance of RequiredOpts.
60 61 62 63 |
# File 'lib/cl/errors.rb', line 60 def initialize(opts) msg = opts.size == 1 ? :required_opt : :required_opts super(msg, opts.join(', ')) end |