Exception: Drydock::InvalidArgument

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/drydock.rb

Direct Known Subclasses

MissingArgument

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ InvalidArgument

Returns a new instance of InvalidArgument.



359
360
361
362
# File 'lib/drydock.rb', line 359

def initialize(args)
  @args = args || []
  super
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



357
358
359
# File 'lib/drydock.rb', line 357

def args
  @args
end

Instance Method Details

#messageObject



364
365
366
# File 'lib/drydock.rb', line 364

def message
  "Unknown option: #{@args.join(", ")}"
end