Exception: Drydock::UnknownCommand

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ UnknownCommand

Returns a new instance of UnknownCommand.



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

def initialize(name)
  @name = name || :unknown
  super
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#messageObject



347
348
349
# File 'lib/drydock.rb', line 347

def message
  "Unknown command: #{@name}"
end