Class: Kudzu::Agent::Util::Matcher
- Inherits:
-
Object
- Object
- Kudzu::Agent::Util::Matcher
- Defined in:
- lib/kudzu/agent/util/matcher.rb
Class Method Summary collapse
Class Method Details
.match?(text, allows: nil, denies: nil) ⇒ Boolean
6 7 8 |
# File 'lib/kudzu/agent/util/matcher.rb', line 6 def match?(text, allows: nil, denies: nil) match_to_allows?(text, allows) && !match_to_denies?(text, denies) end |