Class: Preek::SmellFile
- Inherits:
-
Object
- Object
- Preek::SmellFile
- Defined in:
- lib/preek/smell_file.rb
Overview
A smelly file
Instance Method Summary collapse
- #file ⇒ Object
-
#initialize(smells) ⇒ SmellFile
constructor
A new instance of SmellFile.
- #klasses ⇒ Object
Constructor Details
#initialize(smells) ⇒ SmellFile
Returns a new instance of SmellFile.
5 6 7 8 |
# File 'lib/preek/smell_file.rb', line 5 def initialize(smells) @smells = smells @klass_collector = KlassCollector.new end |
Instance Method Details
#file ⇒ Object
15 16 17 |
# File 'lib/preek/smell_file.rb', line 15 def file @smells.first.source end |
#klasses ⇒ Object
10 11 12 13 |
# File 'lib/preek/smell_file.rb', line 10 def klasses add_smells_to_klass @klass_collector.get_klasses end |