Class: String

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

Overview

Extensions to String needed by Reek.

Instance Method Summary collapse

Instance Method Details

#to_reek_sourceReek::Source::SourceCode

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


43
44
45
# File 'lib/reek/source/core_extras.rb', line 43

def to_reek_source
  Reek::Source::SourceCode.new(self, 'string')
end