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.



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

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

Instance Attribute Details

#argsObject

Returns the value of attribute args.



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

def args
  @args
end

Instance Method Details

#messageObject



345
346
347
# File 'lib/drydock.rb', line 345

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