Class: String

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 string contains Ruby source code and prepares it to be examined for code smells.



48
49
50
# File 'lib/reek/adapters/core_extras.rb', line 48

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