struct

CRDoc::Resolver::NameMatcher

Inherits Struct < Value < Object

Matches names exactly, by * glob, or by prefix.

* is a glob only when the pattern also holds a word character, so operators such as * and &* match literally. ? is always literal.

Constructors

new(pattern : String, prefix : Bool = false)
Source

Class methods

glob?(pattern : String) : Bool
Source
glob_regex(pattern : String, prefix : Bool = false) : Regex
Source

Instance methods

glob?
Source
matches?(name : String) : Bool
Source
pattern
Source
prefix?
Source
regex
Source