Exception: Clamp::Completion::Wanted
- Inherits:
-
StandardError
- Object
- StandardError
- Clamp::Completion::Wanted
- Defined in:
- lib/clamp/completion.rb
Overview
Raised when –shell-completions is used; caught by Command.run.
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#shell ⇒ Object
readonly
Returns the value of attribute shell.
Instance Method Summary collapse
-
#initialize(command, shell) ⇒ Wanted
constructor
A new instance of Wanted.
Constructor Details
#initialize(command, shell) ⇒ Wanted
Returns a new instance of Wanted.
24 25 26 27 28 |
# File 'lib/clamp/completion.rb', line 24 def initialize(command, shell) super("completion requested") @command = command @shell = shell end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
30 31 32 |
# File 'lib/clamp/completion.rb', line 30 def command @command end |
#shell ⇒ Object (readonly)
Returns the value of attribute shell.
30 31 32 |
# File 'lib/clamp/completion.rb', line 30 def shell @shell end |