Class: Cl::RequiredOpts

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

Instance Method Summary collapse

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