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.



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

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#messageObject



331
332
333
# File 'lib/drydock.rb', line 331

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