Skip to content

Commit 643ed50

Browse files
committed
Adds docs for log_summary method
1 parent f7ed8ec commit 643ed50

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/models/detector/bulk_checker.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class Detector
55
# singleton class to access it
66
# See also: `PatternChecker` for shared instance methods
77
module BulkChecker
8-
# This method is intended to be used for inspecting detections during development.
8+
# check_all_matches is intended to be used for inspecting detections during development.
99
# Assumptions include
1010
# - the Class including this module implements a `detections` method (either via `attr_reader` or as a method)
1111
# that is only populated for Terms in which it has made a detection
@@ -29,6 +29,9 @@ def check_all_matches(output: false)
2929
matches if output
3030
end
3131

32+
# log_summary formats and logs information collected in check_all_matches
33+
#
34+
# @param matches [array]. matches should be an array of [phrase, detections]
3235
def log_summary(matches)
3336
Rails.logger.info(ap(matches))
3437

0 commit comments

Comments
 (0)