Sha256: e2f2e461189df9d39a5f2e5d2359a08d3361457bfee49810e96d20c5430709b4
Contents?: true
Size: 340 Bytes
Versions: 4
Compression:
Stored size: 340 Bytes
Contents
# frozen_string_literal: true require "rubycritic/core/analysed_modules_collection" module RubyCritic # nodoc # class AnalysedModulesCollection def skunk_score_average num_modules = @modules.size if num_modules.positive? sum(&:skunk_score) / num_modules.to_f else 0.0 end end end end
Version data entries
4 entries across 4 versions & 1 rubygems