enum

Nucleoc::AtomKind

Inherits Enum < Comparable < Value < Object

The kind of matching algorithm to run for an atom.

Constants

Fuzzy = 0

Fuzzy matching where the needle must match any haystack characters (match can contain gaps). This atom kind is used by default if no special syntax is used. There is no negated fuzzy matching (too many false positives).

Substring = 1

Substring matching where the needle must match a contiguous substring of the haystack.

Prefix = 2

Prefix matching where the needle must match the start of the haystack.

Postfix = 3

Postfix matching where the needle must match the end of the haystack.

Exact = 4

Exact matching where the needle must match the haystack exactly.

Instance methods

exact?

Returns true if this enum value equals Exact

Source
fuzzy?

Returns true if this enum value equals Fuzzy

Source
postfix?

Returns true if this enum value equals Postfix

Source
prefix?

Returns true if this enum value equals Prefix

Source
substring?

Returns true if this enum value equals Substring

Source