Class: Pentest::Checkers
- Inherits:
-
Object
- Object
- Pentest::Checkers
- Defined in:
- lib/pentest/checkers.rb
Class Method Summary collapse
Class Method Details
.add(checker) ⇒ Object
6 7 8 |
# File 'lib/pentest/checkers.rb', line 6 def add(checker) @checkers << checker unless @checkers.include? checker end |
.run_checkers(endpoint, params) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/pentest/checkers.rb', line 10 def run_checkers(endpoint, params) @checkers.each do |checker_class| checker = checker_class.new(endpoint, params) yield(checker) end end |