class Fzy::Match
- Fzy::Match
- Reference
- Object
Overview
A search operation returns an array of Match objects, these objects stores the matching score and the
position of matched characters. See Fzy.search
Included Modules
- Comparable(Fzy::Match)
Defined in:
fzy.crInstance Method Summary
-
#<=>(other)
A match is greater than other if it has a greater score.
-
#positions : Array(Int32)
Array of size of needle string, containing the position of each needle character into haystack string.
-
#score : Float32
Match score.
-
#value : String
Result of the match.
Instance Method Detail
def positions : Array(Int32)
#
Array of size of needle string, containing the position of each needle character into haystack string.