Class: Toys::Completion::Base

Inherits:
Object
  • Object
show all
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.

Instance Method Summary collapse

Instance Method Details

#call(context) ⇒ Array<Toys::Completion::Candidate>

Returns candidates for the current completion. This default implementation returns an empty list.

Parameters:

Returns:



227
228
229
# File 'lib/toys/completion.rb', line 227

def call(context) # rubocop:disable Lint/UnusedMethodArgument
  []
end