Class: Preek::SmellFile
- Inherits:
-
Object
- Object
- Preek::SmellFile
- Defined in:
- lib/preek/smell_file.rb
Overview
A smelly file
Instance Attribute Summary collapse
-
#klasses ⇒ Object
readonly
Returns the value of attribute klasses.
Instance Method Summary collapse
- #file ⇒ Object (also: #filename)
-
#initialize(examiner) ⇒ SmellFile
constructor
A new instance of SmellFile.
Constructor Details
#initialize(examiner) ⇒ SmellFile
Returns a new instance of SmellFile.
6 7 8 9 10 |
# File 'lib/preek/smell_file.rb', line 6 def initialize(examiner) @examiner = examiner @klasses = {} add_smells_to_klasses end |
Instance Attribute Details
#klasses ⇒ Object (readonly)
Returns the value of attribute klasses.
4 5 6 |
# File 'lib/preek/smell_file.rb', line 4 def klasses @klasses end |
Instance Method Details
#file ⇒ Object Also known as: filename
12 13 14 |
# File 'lib/preek/smell_file.rb', line 12 def file @examiner.description end |