Class: File

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

Overview

Extensions to File needed by Reek.

Instance Method Summary collapse

Instance Method Details

#to_reek_sourceReek::Source::SourceFile

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


13
14
15
# File 'lib/reek/source/core_extras.rb', line 13

def to_reek_source
  Reek::Source::SourceFile.new(path)
end