Method: Querly::CLI::Rules#test_rule

Defined in:
lib/querly/cli/rules.rb

#test_rule(rule) ⇒ Object



24
25
26
27
28
29
30
# File 'lib/querly/cli/rules.rb', line 24

def test_rule(rule)
  if ids.empty?
    true
  else
    ids.any? {|id| rule.match?(identifier: id) }
  end
end