struct Bindgen::FindPath::ListMatchCollector

Overview

Collects all found candidates from a given match finder, formatting them per user configuration.

Defined in:

bindgen/find_path/list_match_collector.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(config : ListConfig) #

[View source]

Instance Method Detail

def collect(finder : Enumerable(String)) : String | Nil #

Returns the first match finder returns. Returns nil if nothing was found.


[View source]
def format(candidates) : String #

Formats the non-empty list of candidates into a String.


[View source]