class

CRDoc::Resolver

Inherits Reference < Object

Resolves a positional crdoc argument to what should be shown.

Results put top-level entries first, then order by source (index order), full name, and the order overloads appear in the docs. List results hold one entry per full name.

Constants

MAX_SUGGESTIONS = 10

Constructors

new(index : Index, topics : Array(String))
Source

Class methods

edit_distance(source : String, target : String) : Int32

Edit distance counting an adjacent swap as one edit (optimal string alignment).

Source

Instance methods

resolve(input : String) : Result
Source

Nested types