Exception: Rubikon::UnknownCommandError
- Defined in:
- lib/rubikon/errors.rb
Overview
Raised if a command has been supplied that does not exist
Instance Attribute Summary collapse
-
#command ⇒ Symbol
readonly
The name of the command that has been tried to access.
Instance Method Summary collapse
-
#initialize(name) ⇒ UnknownCommandError
constructor
Creates a new error and stores the name of the command that could not be found.
Constructor Details
#initialize(name) ⇒ UnknownCommandError
Creates a new error and stores the name of the command that could not be found
72 73 74 75 |
# File 'lib/rubikon/errors.rb', line 72 def initialize(name) super "Unknown command: #{name}" @command = name end |
Instance Attribute Details
#command ⇒ Symbol (readonly)
Returns The name of the command that has been tried to access.
66 67 68 |
# File 'lib/rubikon/errors.rb', line 66 def command @command end |