From ddec0126803b978598af64d28c10170bdd3863a7 Mon Sep 17 00:00:00 2001 From: Dan Kubb Date: Wed, 17 Apr 2013 19:11:12 -0700 Subject: [PATCH] Fix YARD docs to have 100% coverage again --- lib/mutant/reporter/stats.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/mutant/reporter/stats.rb b/lib/mutant/reporter/stats.rb index 73a6595b..7b0afc9f 100644 --- a/lib/mutant/reporter/stats.rb +++ b/lib/mutant/reporter/stats.rb @@ -8,6 +8,12 @@ module Mutant class Counter include Equalizer.new(:count, :fails) + # Return count + # + # @return [Fixnum] + # + # @api private + # attr_reader :count # Return fail count @@ -105,6 +111,8 @@ module Mutant # @return [false] # otherwise # + # @api private + # def success? @counts[:subject].nonzero? && !errors? end @@ -131,6 +139,8 @@ module Mutant # @return [false] # otherwise # + # @api private + # def errors? @killers.values.any? do |counter| counter.nonzero?