Exception: OBarc::Utils::Exceptions::MissingArgumentError

Inherits:
OBarcArgumentError show all
Defined in:
lib/obarc/utils/exceptions.rb

Instance Attribute Summary

Attributes inherited from OBarcError

#message

Instance Method Summary (collapse)

Constructor Details

- (MissingArgumentError) initialize(missed_args)

Returns a new instance of MissingArgumentError



19
20
21
22
23
# File 'lib/obarc/utils/exceptions.rb', line 19

def initialize(missed_args)
  list = missed_args.map {|arg| arg.to_s} * (', ')
  msg = "#{list} are required."
  super(msg)
end