struct

Autobot::Tools::Allowlist

Inherits Struct < Value < Object

Empty patterns allow everything; a pattern ending in * matches by prefix.

Constructors

new(patterns : Array(String))
Source

Class methods

matches?(pattern : String, name : String) : Bool
Source

Instance methods

allows?(name : String) : Bool
Source
matching_pattern(name : String) : String | Nil
Source
patterns
Source
restricted?
Source