Method: WhatToDo::CheckManager#run_checks
- Defined in:
- lib/whatToDo/check_manager.rb
#run_checks(count) ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/whatToDo/check_manager.rb', line 22 def run_checks(count) results = [] @checks.each do |check| result = instance_eval(&check) unless result == nil || result == false results << result break if results.length >= count end end results end |