Class: IO
Instance Method Summary collapse
-
#to_reek_source(description = 'io') ⇒ Object
Creates a new
Source
that assumes this IO stream contains Ruby source code and prepares it to be examined for code smells.
Instance Method Details
#to_reek_source(description = 'io') ⇒ Object
Creates a new Source
that assumes this IO stream contains Ruby source code and prepares it to be examined for code smells.
38 39 40 |
# File 'lib/reek/adapters/core_extras.rb', line 38 def to_reek_source(description = 'io') Reek::Source.new(self.readlines.join, description) end |