struct Bindgen::FindPath::ListMatchCollector
- Bindgen::FindPath::ListMatchCollector
- Struct
- Value
- Object
Overview
Collects all found candidates from a given match finder, formatting them per user configuration.
Defined in:
bindgen/find_path/list_match_collector.crConstructors
Instance Method Summary
-
#collect(finder : Enumerable(String)) : String | Nil
Returns the first match finder returns.
-
#format(candidates) : String
Formats the non-empty list of candidates into a
String
.
Constructor Detail
Instance Method Detail
def collect(finder : Enumerable(String)) : String | Nil
#
Returns the first match finder returns. Returns nil
if nothing was
found.