Class: CodePoetry::Formatter::CLFormatter
- Inherits:
-
Object
- Object
- CodePoetry::Formatter::CLFormatter
- Defined in:
- lib/code_poetry/formatter/cl_formatter.rb
Instance Method Summary collapse
Instance Method Details
#format(stats) ⇒ Object
4 5 6 7 8 |
# File 'lib/code_poetry/formatter/cl_formatter.rb', line 4 def format(stats) smelly_stats = stats.reject { |stat| stat.smells.empty? } smelly_stats.each { |stat| print_smells_for(stat) } end |