Class: Toys::Completion::Base
- Inherits:
-
Object
- Object
- Toys::Completion::Base
- Defined in:
- lib/toys/completion.rb
Overview
A base class that returns no completions.
Completions may but do not need to subclass this base class. They
merely need to duck-type Proc
by implementing the call
method.
Direct Known Subclasses
Toys::CLI::DefaultCompletion, Enum, FileSystem, Flag::DefaultCompletion, ToolDefinition::DefaultCompletion
Instance Method Summary collapse
-
#call(context) ⇒ Array<Toys::Completion::Candidate>
Returns candidates for the current completion.
Instance Method Details
#call(context) ⇒ Array<Toys::Completion::Candidate>
Returns candidates for the current completion. This default implementation returns an empty list.
227 228 229 |
# File 'lib/toys/completion.rb', line 227 def call(context) # rubocop:disable Lint/UnusedMethodArgument [] end |