class Fzy::Match(T)

Overview

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

Included Modules

Defined in:

fzy/match.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(downcase_needle : String, hay : Hay(T), store_positions : Bool = false) #

[View source]

Instance Method Detail

def <=>(other : Match) #

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


[View source]
def hay : Hay(T) #

[View source]
def item(*args, **options) #

[View source]
def item(*args, **options, &) #

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

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]