Class: Kudzu::Agent::Util::Matcher

Inherits:
Object
  • Object
show all
Defined in:
lib/kudzu/agent/util/matcher.rb

Class Method Summary collapse

Class Method Details

.match?(text, allows: nil, denies: nil) ⇒ Boolean

Returns:

  • (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