Exception: Drydock::UnknownCommand
- Defined in:
- lib/drydock.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ UnknownCommand
constructor
A new instance of UnknownCommand.
- #message ⇒ Object
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
327 328 329 |
# File 'lib/drydock.rb', line 327 def name @name end |
Instance Method Details
#message ⇒ Object
331 332 333 |
# File 'lib/drydock.rb', line 331 def "Unknown command: #{@name}" end |