class Toys::Completion::Base
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.
Public Instance Methods
call(context)
click to toggle source
Returns candidates for the current completion. This default implementation returns an empty list.
@param context [Toys::Completion::Context] The current completion
context including the string fragment.
@return [Array<Toys::Completion::Candidate>] An array of candidates
# File lib/toys/completion.rb, line 219 def call(context) # rubocop:disable Lint/UnusedMethodArgument [] end