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.
342 343 344 345 |
# File 'lib/drydock.rb', line 342 def initialize(name) @name = name || :unknown super end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
340 341 342 |
# File 'lib/drydock.rb', line 340 def name @name end |
Instance Method Details
#message ⇒ Object
347 348 349 |
# File 'lib/drydock.rb', line 347 def "Unknown command: #{@name}" end |