Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
fzy
v0.1.0
Fzy
Match
Built with Crystal 1.9.2
2023-10-08 10:01:35 UTC
class
Fzy::Match
Fzy::Match
Reference
Object
Included Modules
Comparable(
Fzy::Match
)
Defined in:
fzy.cr
Constructors
.new
(needle : String, haystack : String)
Instance Method Summary
#<=>
(other)
#positions
: Array(Int32)
#positions=
(positions : Array(Int32))
#score
: Float32
#value
: String
Constructor Detail
def self.
new
(needle : String, haystack : String)
#
[
View source
]
Instance Method Detail
def
<=>
(other)
#
[
View source
]
def
positions
: Array(Int32)
#
[
View source
]
def
positions=
(positions : Array(Int32))
#
[
View source
]
def
score
: Float32
#
[
View source
]
def
value
: String
#
[
View source
]