Class: File

Inherits:
Object show all
Defined in:
lib/reek/adapters/core_extras.rb

Instance Method Summary collapse

Instance Method Details

#to_reek_sourceObject

Creates a new Source that assumes this File contains Ruby source code and prepares it to be examined for code smells.



28
29
30
# File 'lib/reek/adapters/core_extras.rb', line 28

def to_reek_source
  Reek::SourceFile.new(self)
end