class Fzy::Match

Overview

A search operation returns an array of Match objects. See Fzy.search

Included Modules

Defined in:

fzy/match.cr

Instance Method Summary

Instance Method Detail

def <=>(other) #

A match is greater than other if it has a greater score.


[View source]
def index : Int32 #

Index of this match on haystack.


[View source]
def positions : Array(Int32) #

Array of size of needle string, containing the position of each needle character into haystack string.


[View source]
def score : Float32 #

Match score.


[View source]
def value : String #

Result of the match.


[View source]