Exception: Clamp::Completion::Wanted

Inherits:
StandardError
  • Object
show all
Defined in:
lib/clamp/completion.rb

Overview

Raised when –shell-completions is used; caught by Command.run.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject (readonly)

Returns the value of attribute command.



30
31
32
# File 'lib/clamp/completion.rb', line 30

def command
  @command
end

#shellObject (readonly)

Returns the value of attribute shell.



30
31
32
# File 'lib/clamp/completion.rb', line 30

def shell
  @shell
end