Exception: CouchShell::NoSuchCommand
- Inherits:
-
ShellUserError
- Object
- Exception
- ShellUserError
- CouchShell::NoSuchCommand
- Defined in:
- lib/couch-shell/exceptions.rb
Instance Attribute Summary collapse
-
#command_name ⇒ Object
readonly
Returns the value of attribute command_name.
Instance Method Summary collapse
-
#initialize(command_name) ⇒ NoSuchCommand
constructor
A new instance of NoSuchCommand.
- #message ⇒ Object
Constructor Details
#initialize(command_name) ⇒ NoSuchCommand
Returns a new instance of NoSuchCommand.
55 56 57 |
# File 'lib/couch-shell/exceptions.rb', line 55 def initialize(command_name) @command_name = command_name end |
Instance Attribute Details
#command_name ⇒ Object (readonly)
Returns the value of attribute command_name.
53 54 55 |
# File 'lib/couch-shell/exceptions.rb', line 53 def command_name @command_name end |
Instance Method Details
#message ⇒ Object
59 60 61 |
# File 'lib/couch-shell/exceptions.rb', line 59 def "No such command: #@command_name" end |