Class: Reek::SourceFile
Overview
Represents a file of Ruby source, whose contents will be examined for code smells.
Instance Attribute Summary
Attributes inherited from Source
Class Method Summary collapse
Instance Method Summary collapse
- #configure(sniffer) ⇒ Object
-
#initialize(file) ⇒ SourceFile
constructor
A new instance of SourceFile.
Methods inherited from Source
Constructor Details
#initialize(file) ⇒ SourceFile
Returns a new instance of SourceFile.
34 35 36 37 |
# File 'lib/reek/adapters/source.rb', line 34 def initialize(file) @file = file super(SourceFile.lines(@file).join, @file.path) end |