class

Nucleoc::Atom

Inherits Reference < Object

A single pattern component that is matched with a single Matcher function.

Constructors

new(needle : String, kind : AtomKind = AtomKind::Fuzzy, ignore_case : Bool = true, normalize : Bool = true, negative : Bool = false)
Source
parse(raw : String, case_matching : CaseMatching = CaseMatching::Smart, normalization : Normalization = Normalization::Smart) : Atom
Source

Instance methods

ignore_case=(ignore_case : Bool)
Source
ignore_case?
Source
kind
Source
kind=(kind : AtomKind)
Source
match(matcher : Matcher, haystack : String, indices : Array(UInt32) | Nil = nil) : UInt16 | Nil
Source
needle
Source
needle=(needle : String)
Source
negative=(negative : Bool)
Source
negative?
Source
normalize=(normalize : Bool)
Source
normalize?
Source