lib/mutant/reporter/cli/printer.rb in mutant-0.5.24 vs lib/mutant/reporter/cli/printer.rb in mutant-0.5.25
- old
+ new
@@ -4,10 +4,12 @@
# CLI runner status printer base class
class Printer
include AbstractType, Delegator, Adamantium::Flat, Concord.new(:output, :object)
+ NL = "\n".freeze
+
# Run printer on object to output
#
# @param [IO] output
# @param [Object] object
#
@@ -37,9 +39,21 @@
#
# @api private
#
def status_color
success? ? Color::GREEN : Color::RED
+ end
+
+ # Visit a collection of objects
+ #
+ # @return [Enumerable<Object>] collection
+ #
+ # @return [undefined]
+ #
+ # @api private
+ #
+ def visit_collection(collection)
+ collection.each(&method(:visit))
end
# Visit object
#
# @param [Object] object