Exception: Drydock::InvalidArgument
- Defined in:
- lib/drydock.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
Instance Method Summary collapse
-
#initialize(args) ⇒ InvalidArgument
constructor
A new instance of InvalidArgument.
- #message ⇒ Object
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
#args ⇒ Object
Returns the value of attribute args.
341 342 343 |
# File 'lib/drydock.rb', line 341 def args @args end |
Instance Method Details
#message ⇒ Object
345 346 347 |
# File 'lib/drydock.rb', line 345 def "Unknown option: #{@args.join(", ")}" end |