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.



325
326
327
# File 'lib/drydock.rb', line 325

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



324
325
326
# File 'lib/drydock.rb', line 324

def name
  @name
end

Instance Method Details

#messageObject



328
329
330
# File 'lib/drydock.rb', line 328

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