Class: RubyCritic::AnalysedModulesCollection
- Inherits:
-
Object
- Object
- RubyCritic::AnalysedModulesCollection
- Defined in:
- lib/skunk/rubycritic/analysed_modules_collection.rb
Overview
nodoc #
Instance Method Summary collapse
Instance Method Details
#skunk_score_average ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/skunk/rubycritic/analysed_modules_collection.rb', line 8 def skunk_score_average num_modules = @modules.size if num_modules.positive? sum(&:skunk_score) / num_modules.to_f else 0.0 end end |