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.



339
340
341
# File 'lib/drydock.rb', line 339

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

Instance Attribute Details

#argsObject

Returns the value of attribute args.



338
339
340
# File 'lib/drydock.rb', line 338

def args
  @args
end

Instance Method Details

#messageObject



342
343
344
# File 'lib/drydock.rb', line 342

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